RichEdit.Margin Method (Typed) | |
Set the margins for the currently selected text in the rich edit control.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD Margin(
nStart AS LONG,
nRight AS LONG,
nOffset AS LONG
) AS LONG
public virtual int Margin(
int nStart,
int nRight,
int nOffset
)
Request Example
View SourceParameters
- nStart
- Type: Long
Integer representing the indentation of the first line in the paragraph. - nRight
- Type: Long
Integer representing the right margin of the paragraph. - nOffset
- Type: Long
Integer representing the indentation of the second line and subsequent lines, relative to nStart. If this value is positive, a hanging indent is created (first line is 'outdented' and the subsequent lines are indented). If this value is negative, the first line is indented and the subsequent lines are outdented.
Return Value
Type:
Long
TRUE, if successful; otherwise FALSE.
Remarks
This method is equivalent to setting the RichEdit:PrimaryIndent, RichEdit:RightMargin, and RichEdit:SecondaryIndent properties.
See Also