BCGControlBar Library for .NET
CalcContentRect Method (Cell)




Calculates the bounding rectangle, which will be used to display the content of cell.
Syntax
'Declaration
 
Public Overridable Function CalcContentRect() As Rectangle
'Usage
 
Dim instance As Cell
Dim value As Rectangle
 
value = instance.CalcContentRect()
public virtual Rectangle CalcContentRect()
public: virtual Rectangle CalcContentRect(); 
public:
virtual Rectangle CalcContentRect(); 
Remarks
The drawing method should not draw outside of this area.
The basic implementation takes the Bounds and subtracts padding defined in visual Style.
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

Cell Class
Cell Members

Send Feedback