CompositeDesignerTheme.ConnectorEndCap Propriedade
Definição
Obtém ou define um valor que determina a forma que aparece no final de um conector.Gets or sets a value that determines the shape that appears at the end of a connector.
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 da propriedade
Um LineAnchor valor de enumeração que define a forma que aparece no final do conector.A LineAnchor enumeration value that defines the shape that appears at the end of the connector. O valor padrão é ArrowAnchor.The default value is ArrowAnchor.
Exemplos
O exemplo a seguir mostra como criar um personalizado CompositeDesignerTheme derivando da CompositeDesignerTheme classe e definindo as propriedades apropriadas para o novo tema.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
Para usar o tema em um CompositeActivityDesigner , aplique o ActivityDesignerThemeAttribute à CompositeActivityDesigner classe.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