ActivityDesignerTheme.BorderColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the BorderColor for the theme.
public:
virtual property System::Drawing::Color BorderColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ColorPickerConverter))]
public virtual System.Drawing.Color BorderColor { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ColorPickerConverter))>]
member this.BorderColor : System.Drawing.Color with get, set
Public Overridable Property BorderColor As Color
Property Value
A Color that represents the BorderColor of the theme.
- Attributes
Examples
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
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
Remarks
The BorderColor is the color used to draw borders for shapes.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈