Επεξεργασία

Κοινή χρήση μέσω


DesignerRegion Constructors

Definition

Initializes a new instance of the DesignerRegion class.

Overloads

DesignerRegion(ControlDesigner, String)

Initializes a new instance of the DesignerRegion class with the specified name for a control designer.

DesignerRegion(ControlDesigner, String, Boolean)

Initializes a new instance of the DesignerRegion class with the specified name for a control designer, optionally setting the instance as a selectable region in the designer.

DesignerRegion(ControlDesigner, String)

Initializes a new instance of the DesignerRegion class with the specified name for a control designer.

public:
 DesignerRegion(System::Web::UI::Design::ControlDesigner ^ designer, System::String ^ name);
public DesignerRegion (System.Web.UI.Design.ControlDesigner designer, string name);
new System.Web.UI.Design.DesignerRegion : System.Web.UI.Design.ControlDesigner * string -> System.Web.UI.Design.DesignerRegion
Public Sub New (designer As ControlDesigner, name As String)

Parameters

designer
ControlDesigner

The control designer that contains this designer region.

name
String

The name of this designer region.

Exceptions

designer is null.

-or-

designer is an empty string ("").

-or-

name is null.

-or-

name is an empty string ("").

Remarks

The following table shows the initial property values for an instance of the DesignerRegion class.

Property Initial Value
Description An empty string ("").
Designer The input designer object.
DisplayName An empty string ("").
EnsureSize false.
Highlight false.
Name The input name object.
Properties An empty HybridDictionary object.
Selectable false.
Selected false.
UserData null.

See also

Applies to

DesignerRegion(ControlDesigner, String, Boolean)

Initializes a new instance of the DesignerRegion class with the specified name for a control designer, optionally setting the instance as a selectable region in the designer.

public:
 DesignerRegion(System::Web::UI::Design::ControlDesigner ^ designer, System::String ^ name, bool selectable);
public DesignerRegion (System.Web.UI.Design.ControlDesigner designer, string name, bool selectable);
new System.Web.UI.Design.DesignerRegion : System.Web.UI.Design.ControlDesigner * string * bool -> System.Web.UI.Design.DesignerRegion
Public Sub New (designer As ControlDesigner, name As String, selectable As Boolean)

Parameters

designer
ControlDesigner

The control designer that contains this designer region.

name
String

The name of this designer region.

selectable
Boolean

true to select the region; otherwise, false.

Exceptions

designer is null.

-or-

designer is an empty string ("").

-or-

name is null.

-or-

name is an empty string ("").

Remarks

The following table shows the initial property values for an instance of the DesignerRegion class.

Property Initial Value
Description An empty string ("").
Designer The input designer object.
DisplayName An empty string ("").
EnsureSize false.
Highlight false.
Name The input name object.
Properties An empty HybridDictionary object.
Selectable The input selectable value.
Selected false.
UserData null.

See also

Applies to