ZoneWorkspace.GetZoneName Method
Zone name assigned to a given control. Can only be assigned to controls that are contained in the ZoneWorkspace.
Namespace: Microsoft.Practices.CompositeUI.WinForms
Assembly: Microsoft.Practices.CompositeUI.WinForms (in microsoft.practices.compositeui.winforms.dll)
Syntax
'Declaration
<DisplayNameAttribute("ZoneName")> _
<DefaultValueAttribute(Nothing)> _
<DescriptionAttribute("Zone name assigned to the control so that smart parts can be shown on it programmatically.")> _
<CategoryAttribute("Layout")> _
Public Function GetZoneName ( _
target As Control _
) As String
'Usage
Dim instance As ZoneWorkspace
Dim target As Control
Dim returnValue As String
returnValue = instance.GetZoneName(target)
[DisplayNameAttribute("ZoneName")]
[DefaultValueAttribute(null)]
[DescriptionAttribute("Zone name assigned to the control so that smart parts can be shown on it programmatically.")]
[CategoryAttribute("Layout")]
public string GetZoneName (
Control target
)
[DisplayNameAttribute(L"ZoneName")]
[DefaultValueAttribute(nullptr)]
[DescriptionAttribute(L"Zone name assigned to the control so that smart parts can be shown on it programmatically.")]
[CategoryAttribute(L"Layout")]
public:
String^ GetZoneName (
Control^ target
)
/** @attribute DisplayNameAttribute("ZoneName") */
/** @attribute DefaultValueAttribute(null) */
/** @attribute DescriptionAttribute("Zone name assigned to the control so that smart parts can be shown on it programmatically.") */
/** @attribute CategoryAttribute("Layout") */
public String GetZoneName (
Control target
)
DisplayNameAttribute("ZoneName")
DefaultValueAttribute(null)
DescriptionAttribute("Zone name assigned to the control so that smart parts can be shown on it programmatically.")
CategoryAttribute("Layout")
public function GetZoneName (
target : Control
) : String
Parameters
- target
Control to retrieve the zone name for.
Return Value
The name of the zone assigned to the control, or null.
See Also
Reference
ZoneWorkspace Class
ZoneWorkspace Members
Microsoft.Practices.CompositeUI.WinForms Namespace