DesignerRegion.DesignerRegion(ControlDesigner, String, Boolean) Constructor

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.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
DesignerRegion (
	ControlDesigner^ designer, 
	String^ name, 
	bool selectable
)
public DesignerRegion (
	ControlDesigner designer, 
	String name, 
	boolean selectable
)
public function DesignerRegion (
	designer : ControlDesigner, 
	name : String, 
	selectable : boolean
)
Not applicable.

Parameters

designer

The control designer that contains this designer region.

name

The name of this designer region.

selectable

true to select the region; otherwise, false.

Exception typeCondition

ArgumentNullException

designer is a null reference (Nothing in Visual Basic).

-or-

designer is an empty string ("").

-or-

name is a null reference (Nothing in Visual Basic).

-or-

name is an empty string ("").

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

a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: