Click or drag to resize
TextDocumentFromRichEditControl Method
Creates a TextDocument instance from a RichEdit control.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public static TextDocument FromRichEditControl(
	IntPtr handle,
	[OptionalAttribute] bool enableAdvancedTypography
)

Parameters

handle
Type: SystemIntPtr
Handle to the native RichEdit control..
enableAdvancedTypography (Optional)
Type: SystemBoolean
Whether to enable advanced typography options in the control.

Return Value

Type: TextDocument
TextDocument instance representing the rich text document in the control.
Remarks

The version of the RichEdit control determines the breadth of TOM functionality supported. Some methods and properties may not be available. Use the SupportedVersion property to determine which version of TOM the control supports.

See Also