ActivityDesignerTheme.BackColorEnd 屬性


取得或設定 Color,做為在背景色彩中使用色彩漸層時的結束色彩。Gets or sets the Color to end with when using a color gradient for the background color.

 virtual property System::Drawing::Color BackColorEnd { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public virtual System.Drawing.Color BackColorEnd { get; set; }
member this.BackColorEnd : System.Drawing.Color with get, set
Public Overridable Property BackColorEnd As Color


背景的結束 ColorThe background ending Color.



下列範例示範如何建立自訂 ActivityDesignerTheme,其方式是從 ActivityDesignerTheme 類別衍生,並為新主題設定適當的屬性。The following example shows how to create a custom ActivityDesignerTheme by deriving from the ActivityDesignerTheme class and setting the appropriate properties for the new theme.

public class CustomActivityDesignerTheme : ActivityDesignerTheme
    public CustomActivityDesignerTheme(WorkflowTheme theme)
        : base(theme)
        this.BorderStyle = DashStyle.Solid;
        this.BorderColor = Color.FromArgb(0, 0, 0);
        this.BackColorStart = Color.FromArgb(37, 15, 242);
        this.BackColorEnd = Color.FromArgb(189, 184, 254);
        this.BackgroundStyle = LinearGradientMode.Vertical;
        this.ForeColor = Color.Black;
Public Class CustomActivityDesignerTheme
    Inherits ActivityDesignerTheme
    Public Sub New(ByVal theme As WorkflowTheme)

        Me.BorderStyle = DashStyle.Solid
        Me.BorderColor = Color.FromArgb(0, 0, 0)
        Me.BackColorStart = Color.FromArgb(37, 15, 242)
        Me.BackColorEnd = Color.FromArgb(189, 184, 254)
        Me.BackgroundStyle = LinearGradientMode.Vertical
        Me.ForeColor = Color.Black
    End Sub
End Class

若要使用 ActivityDesigner 上的主題,請將 ActivityDesignerThemeAttribute 套用至 ActivityDesigner 類別。To use the theme on an ActivityDesigner, apply the ActivityDesignerThemeAttribute to the ActivityDesigner class.

public class CustomActivityDesigner2 : ActivityDesigner
<ActivityDesignerTheme(GetType(CustomActivityDesignerTheme))> _
Public Class CustomActivityDesigner2
    Inherits ActivityDesigner


BackColorEnd,表示背景漸層的結束色彩。BackColorEnd indicates the ending color of a background gradient. 若要使用背景漸層色彩,請設定 BackColorStartBackColorEnd 屬性。To use background gradient color, set the BackColorStart and BackColorEnd properties. 背景會從開始色彩逐漸變成結束色彩。The background will gradually change color from the starting color to the ending color.