SetIconSize Method
Description
Sets the icon size. SetIconSize can be used to set the normal icon size and the icon size when large icons are used.
Syntax
Public Sub SetIconSize( _
ByVal LargeIcons As Boolean, _
ByVal cx As Long, _
ByVal cy As Long _
)
Parameters
- LargeIcons: Specifies whether large icons are to be used.
- cx: The width of each large icon.
- cy: The height of each large icon.
Example
SetIconSize Sample (Visual Basic)
This sample illustrates how to change the size of large icons when large icon support is enabled.
' This sample code illustrates how to toggle the use of large icons.
CommandBars.Options.LargeIcons = True
' This sample code illustrates how to change the small icon size.
CommandBars.Options.SetIconSize False, 24, 24
' This sample code illustrates how to change the large icon size.
CommandBars.Options.SetIconSize True, 32, 32
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.