ArcObjects Library Reference (Controls)  

IToolbarControl2.Orientation Property

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

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets the orientation of a ToolbarControl. By default the orientation is horizontal.

Errors Returned

1005 800a03ed: The value of a parameter which is an enumerated constant is out of the range of required values

Remarks

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.

See Also

IToolbarControl2 Interface