Partilhar via


CompartmentDescription Constructor

Definition

Constructor that takes all of the initial values.

protected:
 CompartmentDescription(System::String ^ name, System::String ^ title, System::Drawing::Color titleFill, bool allowCustomTitleFillColor, System::Drawing::Color compartmentFill, bool allowCustomCompartmentFillColor, Microsoft::VisualStudio::Modeling::Diagrams::FontSettings ^ titleFontSettings);
protected CompartmentDescription (string name, string title, System.Drawing.Color titleFill, bool allowCustomTitleFillColor, System.Drawing.Color compartmentFill, bool allowCustomCompartmentFillColor, Microsoft.VisualStudio.Modeling.Diagrams.FontSettings titleFontSettings);
new Microsoft.VisualStudio.Modeling.Diagrams.CompartmentDescription : string * string * System.Drawing.Color * bool * System.Drawing.Color * bool * Microsoft.VisualStudio.Modeling.Diagrams.FontSettings -> Microsoft.VisualStudio.Modeling.Diagrams.CompartmentDescription
Protected Sub New (name As String, title As String, titleFill As Color, allowCustomTitleFillColor As Boolean, compartmentFill As Color, allowCustomCompartmentFillColor As Boolean, titleFontSettings As FontSettings)

Parameters

name
String

Initial Name value.

title
String

Initial Title value.

titleFill
Color

Initital TitleFill value.

allowCustomTitleFillColor
Boolean

True if title fill color can be changed through the property grid, false otherwise.

compartmentFill
Color

Initial CompartmentFill value.

allowCustomCompartmentFillColor
Boolean

True if compartment fill color can be changed through the property grid, false otherwise.

titleFontSettings
FontSettings

Font settings for the title font. This font will be placed in the instance style set when the compartment is created.

Applies to