Size: IGxSizeF;
The Size property returns the size of the visible area of a spreadsheet (mm).
The visible area of a spreadsheet is the entire table except for the scroll bars:
To execute the example a form with a button named Button1 on it, a TabSheetBox component, and a UiTabSheet component named UiTabSheet1 that is the data source for TabSheetBox are required.
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: