This document is archived and information here might be outdated.  Recommended version.


IToolbarControl2.IconSize Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarControl2 Interface > IToolbarControl2.IconSize Property
ArcGIS Developer Help

IToolbarControl2.IconSize Property

The size in pixels of icons displayed on the ToolbarControl.

[Visual Basic .NET]
Public Property IconSize As Integer
[C#]
public int IconSize {get; set;}
[C++]
HRESULT get_IconSize(
void
);
[C++]
HRESULT put_IconSize(
);

Product Availability

Available with ArcGIS Engine.

Description

The size in pixels that each item on the ToolbarControl will display the ICommand::Bitmap property. By default bitmaps are stretched to a size of 16 x 16 pixels. The minimum IconSize allowed is 8.

Errors Returned

1076 800a0434: The supplied stream format is not recognized as containing ToolbarControl items
1029 800a0405: Version incompatibility when loading from a stream, the stream version is ahead of the current software version

Remarks

IconSize may not affect the size of an item on the ToolbarControl that contains an object implementing IToolControl. Whether the ToolControl responds to the resize depends on its implementation.

See Also

IToolbarControl2 Interface