BCGControlBar Library for .NET
OnCalculateSize Method (GalleryControl)




Specifies the number of colums.
Specifies the desired mode.
Returns the projected size of the Gallery, based on the number columns and desired mode (Full or Compact).
Syntax
'Declaration
 
Public Overridable Function OnCalculateSize( _
   ByVal columns As Integer, _
   ByVal mode As GalleryMode _
) As Size
'Usage
 
Dim instance As GalleryControl
Dim columns As Integer
Dim mode As GalleryMode
Dim value As Size
 
value = instance.OnCalculateSize(columns, mode)
public virtual Size OnCalculateSize( 
   int columns,
   GalleryMode mode
)
public: virtual Size OnCalculateSize( 
   int columns,
   GalleryMode mode
) 
public:
virtual Size OnCalculateSize( 
   int columns,
   GalleryMode mode
) 

Parameters

columns
Specifies the number of colums.
mode
Specifies the desired mode.
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

GalleryControl Class
GalleryControl Members

Send Feedback