BCGControlBar Library for .NET
OnCalculateSize Method (GalleryCommandObject)




Specifies the default object size proposed by the related Gallery control.
Calculates size of the object, based on its image size, text width and options (like DrawMenuMargin) defined for the related Gallery control.
Syntax
'Declaration
 
Public Overrides Function OnCalculateSize( _
   ByVal sizeDefault As Size _
) As Size
'Usage
 
Dim instance As GalleryCommandObject
Dim sizeDefault As Size
Dim value As Size
 
value = instance.OnCalculateSize(sizeDefault)
public override Size OnCalculateSize( 
   Size sizeDefault
)
public: Size OnCalculateSize( 
   Size sizeDefault
) override 
public:
Size OnCalculateSize( 
   Size sizeDefault
) override 

Parameters

sizeDefault
Specifies the default object size proposed by the related Gallery control.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GalleryCommandObject Class
GalleryCommandObject Members
Base Implementation in OnCalculateSize

Send Feedback