|
|
|
|
|
TopIndent (Property) In french: RetraitHaut
The TopIndent property is used to get and change the space at the top of the text (top margin) in a control. This property is available for: - Edit controls.
- Static controls.
Remark: This property is equivalent to setting the top margin: - For Static controls: the top margin is defined in the "Style" tab of the control description window ("Outside borders", "Margins", "Top margin").
- For an Edit control, the top margin is defined in the "Style" tab of the control description window ("Input area", "Margins", "Top margin").
// Define a margin equal to 4 pixels at the top and bottom of Static control STC_Date.BottomIndent = 4 STC_Date.TopIndent = 4
// Keep a 5-pixel margin at the top and bottom of the input area EDT_CarName.BottomIndent = 5 EDT_CarName.TopIndent = 5
Syntax
Getting the value of the top margin in a control Hide the details
<Result> = <Control used>.TopIndent
<Result>: Integer Number of pixels used for the margin at the top of the text. The indent is set to 0 pixels by default (no indent). <Control used>: Control name Name of the control used: - Static control,
- Edit control.
Changing the value of the top margin in a control Hide the details
<Control used>.TopIndent = <New value>
<Control used>: Control name Name of the control used: - Static control,
- Edit control.
<New value>: Integer New value for the margin at the top of the text (ien pixels). This value must be positive.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|