次の方法で共有


CompositeDesignerTheme.WatermarkAlignment プロパティ

定義

CompositeActivityDesigner 内のウォーターマーク イメージの配置を取得または設定します。

public:
 virtual property System::Workflow::ComponentModel::Design::DesignerContentAlignment WatermarkAlignment { System::Workflow::ComponentModel::Design::DesignerContentAlignment get(); void set(System::Workflow::ComponentModel::Design::DesignerContentAlignment value); };
public virtual System.Workflow.ComponentModel.Design.DesignerContentAlignment WatermarkAlignment { get; set; }
member this.WatermarkAlignment : System.Workflow.ComponentModel.Design.DesignerContentAlignment with get, set
Public Overridable Property WatermarkAlignment As DesignerContentAlignment

プロパティ値

DesignerContentAlignment

DesignerContentAlignment 内のウォーターマーク イメージが配置される場所を示す CompositeActivityDesigner 列挙値。 既定値は BottomRight です。

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

public class ParallelIfTheme : CompositeDesignerTheme
{
    public ParallelIfTheme(WorkflowTheme theme)
        : base(theme)
    {
        this.ShowDropShadow = true;
        this.ConnectorStartCap = LineAnchor.None;
        this.ConnectorEndCap = LineAnchor.None;
        this.BorderStyle = DashStyle.Dash;
        this.WatermarkImagePath = @"parallelIfWatermark.png";
        this.WatermarkAlignment = DesignerContentAlignment.Fill;
    }
}
Public Class ParallelIfTheme
    Inherits CompositeDesignerTheme

    Public Sub New(ByVal theme As WorkflowTheme)
        MyBase.new(theme)

        Me.ShowDropShadow = True
        Me.ConnectorStartCap = LineAnchor.None
        Me.ConnectorEndCap = LineAnchor.None
        Me.BorderStyle = DashStyle.Dash
        Me.WatermarkImagePath = "parallelIfWatermark.png"
        Me.WatermarkAlignment = DesignerContentAlignment.Fill
    End Sub
End Class

CompositeActivityDesigner でテーマを使用するには、ActivityDesignerThemeAttribute クラスに CompositeActivityDesigner を適用します。

[ActivityDesignerTheme(typeof(ParallelIfTheme))]
public class ParallelIfDesigner : ParallelActivityDesigner
<ActivityDesignerTheme(GetType(ParallelIfTheme))> _
Public Class ParallelIfDesigner
    Inherits ParallelActivityDesigner

適用対象