Compartir a través de


CompositeDesignerTheme.ConnectorStartCap Propiedad

Definición

Obtiene o establece un valor que determina la forma que aparece al principio de un conector.

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

Valor de propiedad

Un valor de enumeración LineAnchor que define la forma que aparece al principio del conector. El valor predeterminado es None.

Ejemplos

El ejemplo siguiente muestra cómo crear un CompositeDesignerTheme personalizado derivando de la clase CompositeDesignerTheme y estableciendo las propiedades adecuadas para el nuevo tema.

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

Para utilizar el tema en CompositeActivityDesigner, aplique ActivityDesignerThemeAttribute a la clase CompositeActivityDesigner.

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

Se aplica a