CompositeDesignerTheme.ConnectorStartCap 屬性

定義

取得或設定決定出現在接點起點圖形的值。Gets or sets a value that determines the shape that appears at the beginning of a connector.

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

屬性值

LineAnchor 列舉值,定義出現在接點起點的形狀。A LineAnchor enumeration value that defines the shape that appears at the beginning of the connector. 預設值為 NoneThe default value is None.

範例

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

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 類別。To use the theme on a CompositeActivityDesigner, apply the ActivityDesignerThemeAttribute to the CompositeActivityDesigner class.

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

適用於