This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarControl2 Interface > IToolbarControl2.Orientation Property (ArcObjects .NET 10.4 SDK) |
Indicates if the ToolbarControl is horizontally or vertically aligned.
[Visual Basic .NET] Public Property Orientation As esriToolbarOrientation
[C#] public esriToolbarOrientation Orientation {get; set;}
[C++]
HRESULT get_Orientation(
esriToolbarOrientation* pVal
);
[C++]
HRESULT put_Orientation(
esriToolbarOrientation pVal
);
[C++]
Parameters pVal [out, retval]
pVal is a parameter of type esriToolbarOrientation pVal [in]
pVal is a parameter of type esriToolbarOrientation
Returns or sets the orientation of a ToolbarControl. By default the orientation is horizontal.
1005 800a03ed: The value of a parameter which is an enumerated constant is out of the range of required values
When a ToolControl is added to a ToolbarControl with a vertical orientation, the ToolControl displays as a button. Clicking the button displays the ToolControl in a seperate window. The ToolControl window can be closed interactively by the end user, or programmatically using the ICompletionNotify::SetComplete method.