ITabView.Size

Syntax

Size: IGxSizeF;

Description

The Size property returns the size of the visible area of a spreadsheet (mm).

Comments

The visible area of a spreadsheet is the entire table except for the scroll bars:

Example

Executing the example requires a form with the Button1 button located on it,, the TabSheetBox component, and the UiTabSheet component named UiTabSheet1, that is used as the data source for TabSheetBox.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

TabSheet: ITabSheet;

TabView: ITabView;

SizeF: IGxSizeF;

Begin

TabSheet := UiTabSheet1.TabSheet;

TabView := TabSheet.View;

SizeF := TabView.Size;

TabSheet.ColumnWidth(0) := SizeF.Width;

End Sub Button1OnClick;

After executing the example the width of the first spreadsheet column is equal to the width of the visible area.

See also:

ITabView