NodeShape.BackgroundGradientMode Property

Gets the gradient for the background of the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
Public Overridable ReadOnly Property BackgroundGradientMode As LinearGradientMode
'使用
Dim instance As NodeShape
Dim value As LinearGradientMode

value = instance.BackgroundGradientMode
public virtual LinearGradientMode BackgroundGradientMode { get; }
public:
virtual property LinearGradientMode BackgroundGradientMode {
    LinearGradientMode get ();
}
public function get BackgroundGradientMode () : LinearGradientMode

Property Value

Type: System.Drawing.Drawing2D.LinearGradientMode

The gradient for the background of the shape.

Remarks

By default, the vertical gradient is returned.

Examples

public override global::System.Drawing.Drawing2D.LinearGradientMode BackgroundGradientMode
{
    get
    {
        return global::System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
    }
}

Permissions

See Also

Reference

NodeShape Class

NodeShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace