Click or drag to resize

RichEdit.Margin Method (Typed)

X#
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
Request Example View Source

Parameters

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