Compartir a través de


CompositeDesignerTheme.ConnectorEndCap Propiedad

Definición

Obtiene o establece un valor que determina la forma que aparece en el punto de conexión de un conector.

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

Valor de propiedad

Un valor de enumeración LineAnchor que define la forma que aparece en el extremo del conector. El valor predeterminado es ArrowAnchor.

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