UserDecimalSeparator: String;
The UserDecimalSeparator property sets custom decimal separator.
The default decimal separator is ".".
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.UserDecimalSeparator := ":";
Color := GxColor.FromName("Yellow");
SolidBrush := New GxSolidBrush.Create(Color);
Style.BackgroundBrush := SolidBrush
End Sub Button1OnClick;
As a result, clicking the button changes the custom decimal separator in the cell, for example:
See also: