ITabCellStyle.UserThousandSeparator

Syntax

UserThousandSeparator: String;

Description

The UserThousandSeparator property sets custom thousands separator.

Comments

To set custom thorusands separator, determine data display format in the table cell using the ITabCellStyle.CustomFormat property.

Example

To execute the example, place on the form the Button component named BUTTON1, the TabSheetBox component named TABSHEETBOX1, and the UiTabSheet component named UITABSHEET1. For the TabSheetBox1 component set the Source property to UiTabSheet1.

Add links to the Drawing, Tab, and Forms system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Style: ITabCellStyle; 
    Sheet: ITabSheet;
    Range: ITabRange;
    Color: IGxColor;
    SolidBrush: IGxBrush;
Begin
    Sheet := UiTabSheet1.TabSheet;
    Range := Sheet.View.Selection.Range;
    Style := Range.Style;
    Style.CustomFormat:= 
"# ##0";
    Style.UserThousandSeparator:= 
" ' ";
    Color := GxColor.FromName(
"Yellow");
    SolidBrush := 
New GxSolidBrush.Create(Color);
    Style.BackgroundBrush := SolidBrush;
End Sub Button1OnClick;

As a result, clicking the button changes the custom thousands separator in the cell, for example:

See also:

ITabCellStyle