| TextDocumentFromRichEditControl Method |
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public static TextDocument FromRichEditControl(
IntPtr handle,
[OptionalAttribute] bool enableAdvancedTypography
)
Public Shared Function FromRichEditControl (
handle As IntPtr,
<OptionalAttribute> enableAdvancedTypography As Boolean
) As TextDocument
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:
TextDocumentTextDocument 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