Compartir a través de


ActivityDesignerTheme.BackColorEnd Propiedad

Definición

Obtiene o establece Color para finalizar al utilizar un degradado de color para el color de fondo.

public:
 virtual property System::Drawing::Color BackColorEnd { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ColorPickerConverter))]
public virtual System.Drawing.Color BackColorEnd { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ColorPickerConverter))>]
member this.BackColorEnd : System.Drawing.Color with get, set
Public Overridable Property BackColorEnd As Color

Valor de propiedad

Color

El acabado del fondo Color.

Atributos

Ejemplos

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

public class CustomActivityDesignerTheme : ActivityDesignerTheme
{
    public CustomActivityDesignerTheme(WorkflowTheme theme)
        : base(theme)
    {
        base.Initialize();
        this.BorderStyle = DashStyle.Solid;
        this.BorderColor = Color.FromArgb(0, 0, 0);
        this.BackColorStart = Color.FromArgb(37, 15, 242);
        this.BackColorEnd = Color.FromArgb(189, 184, 254);
        this.BackgroundStyle = LinearGradientMode.Vertical;
        this.ForeColor = Color.Black;
    }
}
Public Class CustomActivityDesignerTheme
    Inherits ActivityDesignerTheme
    Public Sub New(ByVal theme As WorkflowTheme)
        MyBase.new(theme)

        MyBase.Initialize()
        Me.BorderStyle = DashStyle.Solid
        Me.BorderColor = Color.FromArgb(0, 0, 0)
        Me.BackColorStart = Color.FromArgb(37, 15, 242)
        Me.BackColorEnd = Color.FromArgb(189, 184, 254)
        Me.BackgroundStyle = LinearGradientMode.Vertical
        Me.ForeColor = Color.Black
    End Sub
End Class

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

[ActivityDesignerTheme(typeof(CustomActivityDesignerTheme))]
public class CustomActivityDesigner2 : ActivityDesigner
<ActivityDesignerTheme(GetType(CustomActivityDesignerTheme))> _
Public Class CustomActivityDesigner2
    Inherits ActivityDesigner

Comentarios

BackColorEnd indica el color de acabado de un degradado de fondo. Para utilizar el color del degradado de fondo, establezca BackColorStart y las propiedades BackColorEnd. El fondo cambiará gradualmente el color del color inicial al color final.

Se aplica a