Share via


ZoneWorkspace.GetIsDefaultZone Method

Determines whether the zone is the default one. Only one zone can be the default and only controls that are contained in the ZoneWorkspace can be set as default zones.

Namespace: Microsoft.Practices.CompositeUI.WinForms
Assembly: Microsoft.Practices.CompositeUI.WinForms (in microsoft.practices.compositeui.winforms.dll)

Syntax

'Declaration
<DisplayNameAttribute("IsDefaultZone")> _
<DefaultValueAttribute(False)> _
<DescriptionAttribute("Specifies whether the zone is the default one for showing smart parts.")> _
<CategoryAttribute("Layout")> _
Public Function GetIsDefaultZone ( _
    target As Control _
) As Boolean
'Usage
Dim instance As ZoneWorkspace
Dim target As Control
Dim returnValue As Boolean

returnValue = instance.GetIsDefaultZone(target)
[DisplayNameAttribute("IsDefaultZone")] 
[DefaultValueAttribute(false)] 
[DescriptionAttribute("Specifies whether the zone is the default one for showing smart parts.")] 
[CategoryAttribute("Layout")] 
public bool GetIsDefaultZone (
    Control target
)
[DisplayNameAttribute(L"IsDefaultZone")] 
[DefaultValueAttribute(false)] 
[DescriptionAttribute(L"Specifies whether the zone is the default one for showing smart parts.")] 
[CategoryAttribute(L"Layout")] 
public:
bool GetIsDefaultZone (
    Control^ target
)
/** @attribute DisplayNameAttribute("IsDefaultZone") */ 
/** @attribute DefaultValueAttribute(false) */ 
/** @attribute DescriptionAttribute("Specifies whether the zone is the default one for showing smart parts.") */ 
/** @attribute CategoryAttribute("Layout") */ 
public boolean GetIsDefaultZone (
    Control target
)
DisplayNameAttribute("IsDefaultZone") 
DefaultValueAttribute(false) 
DescriptionAttribute("Specifies whether the zone is the default one for showing smart parts.") 
CategoryAttribute("Layout") 
public function GetIsDefaultZone (
    target : Control
) : boolean

Parameters

  • target
    Control to specify as the default one.

Return Value

true if the zone is the default one, false otherwise.

See Also

Reference

ZoneWorkspace Class
ZoneWorkspace Members
Microsoft.Practices.CompositeUI.WinForms Namespace