Compartir a través de


CompositeDesignerTheme.WatermarkAlignment Propiedad

Definición

Obtiene o establece la alineación de la marca de agua en CompositeActivityDesigner.

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

Valor de propiedad

DesignerContentAlignment

Un valor de enumeración DesignerContentAlignment que indica donde en CompositeActivityDesigner se colocará la marca de agua. El valor predeterminado es BottomRight.

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