CompositeDesignerTheme.ConnectorStartCap 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定決定出現在接點起點圖形的值。
public:
virtual property System::Workflow::ComponentModel::Design::LineAnchor ConnectorStartCap { System::Workflow::ComponentModel::Design::LineAnchor get(); void set(System::Workflow::ComponentModel::Design::LineAnchor value); };
C#
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 列舉值,定義出現在接點起點的形狀。 預設值是 None。
下列範例示範如何建立自訂 CompositeDesignerTheme,其方式是從 CompositeDesignerTheme 類別衍生,並為新主題設定適當的屬性。
C#
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 類別。
C#
[ActivityDesignerTheme(typeof(ParallelIfTheme))]
public class ParallelIfDesigner : ParallelActivityDesigner
<ActivityDesignerTheme(GetType(ParallelIfTheme))> _
Public Class ParallelIfDesigner
Inherits ParallelActivityDesigner
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |