ActivityDesignerTheme.BackColorEnd プロパティ

定義

背景色に色のグラデーションを使用するときに終わりの Color を取得または設定します。

public:
 virtual property System::Drawing::Color BackColorEnd { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ColorPickerConverter))]
public virtual System.Drawing.Color BackColorEnd { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ColorPickerConverter))>]
member this.BackColorEnd : System.Drawing.Color with get, set
Public Overridable Property BackColorEnd As Color

プロパティ値

背景の終わりの Color

属性

ActivityDesignerTheme クラスを派生させて新しいテーマに適したプロパティを設定することによってカスタム ActivityDesignerTheme を作成する方法の例を、次に示します。

public class CustomActivityDesignerTheme : ActivityDesignerTheme
{
    public CustomActivityDesignerTheme(WorkflowTheme theme)
        : base(theme)
    {
        base.Initialize();
        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)
        MyBase.new(theme)

        MyBase.Initialize()
        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 を適用します。

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

注釈

BackColorEnd は、背景グラデーションの終了色を示します。 背景にグラデーション カラーを使用するには、BackColorStart プロパティおよび BackColorEnd プロパティを設定します。 背景色が開始色から終了色まで徐々に変化します。

適用対象