ActivityDesignerTheme.ForeColor Propiedad

Definición

Obtiene o establece el color de primer plano.Gets or sets the color of the foreground.

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

Valor de propiedad

Color

Color que representa el color de primer plano del tema.A Color that represents the foreground color of the theme.

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.The following example shows how to create a custom ActivityDesignerTheme by deriving from the ActivityDesignerTheme class and setting the appropriate properties for the new theme.

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.To use the theme on an ActivityDesigner, apply the ActivityDesignerThemeAttribute to the ActivityDesigner class.

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

Comentarios

Utilice la propiedad ForeColor para especificar el color de primer plano del tema.Use the ForeColor property to specify the foreground color of the theme. El color de primer plano suele ser el color del texto.The foreground color is usually the color of the text.

Se aplica a