ElementListCompartmentDescription Constructor
Constructor that takes all of the initial values.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
title As String, _
titleFill As Color, _
allowCustomTitleFillColor As Boolean, _
compartmentFill As Color, _
allowCustomCompartmentFillColor As Boolean, _
titleFontSettings As FontSettings, _
itemFontSettings As FontSettings, _
isDefaultCollapsed As Boolean _
)
public ElementListCompartmentDescription(
string name,
string title,
Color titleFill,
bool allowCustomTitleFillColor,
Color compartmentFill,
bool allowCustomCompartmentFillColor,
FontSettings titleFontSettings,
FontSettings itemFontSettings,
bool isDefaultCollapsed
)
public:
ElementListCompartmentDescription(
String^ name,
String^ title,
Color titleFill,
bool allowCustomTitleFillColor,
Color compartmentFill,
bool allowCustomCompartmentFillColor,
FontSettings^ titleFontSettings,
FontSettings^ itemFontSettings,
bool isDefaultCollapsed
)
new :
name:string *
title:string *
titleFill:Color *
allowCustomTitleFillColor:bool *
compartmentFill:Color *
allowCustomCompartmentFillColor:bool *
titleFontSettings:FontSettings *
itemFontSettings:FontSettings *
isDefaultCollapsed:bool -> ElementListCompartmentDescription
public function ElementListCompartmentDescription(
name : String,
title : String,
titleFill : Color,
allowCustomTitleFillColor : boolean,
compartmentFill : Color,
allowCustomCompartmentFillColor : boolean,
titleFontSettings : FontSettings,
itemFontSettings : FontSettings,
isDefaultCollapsed : boolean
)
Parameters
name
Type: System.StringInitial Name value.
title
Type: System.StringInitial Title value.
titleFill
Type: System.Drawing.ColorInitital TitleFill value.
allowCustomTitleFillColor
Type: System.BooleanTrue if title fill color can be changed through the property grid, false otherwise.
compartmentFill
Type: System.Drawing.ColorInitial CompartmentFill value.
allowCustomCompartmentFillColor
Type: System.BooleanTrue if compartment fill color can be changed through the property grid, false otherwise.
titleFontSettings
Type: Microsoft.VisualStudio.Modeling.Diagrams.FontSettingsFont settings for the title font. This font will be placed in the instance style set when the compartment is created.
itemFontSettings
Type: Microsoft.VisualStudio.Modeling.Diagrams.FontSettingsFont settings for the compartment item font. This font will be placed in the instance style set when the compartment is created.
isDefaultCollapsed
Type: System.BooleanIf the compartment is collapsed by default
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.