ITextPara2::SetTrimPunctuationAtStart method (tom.h)

Sets whether to trim the leading space of a punctuation symbol at the start of a line.

Syntax

HRESULT SetTrimPunctuationAtStart(
  [in] long Value
);

Parameters

[in] Value

Type: long

A tomBool that indicates whether to trim the leading space of a punctuation symbol. It can be one of the following values.

Value Meaning
tomTrue Trim the leading space of a punctuation symbol at the start of a line.
tomFalse Do not trim the leading space of a punctuation symbol at the start of a line.
tomToggle Toggle the TrimPunctuationAtStart property.
tomUndefined The TrimPunctuationAtStart property is undefined.

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

ITextPara2

ITextPara2::GetTrimPunctuationAtStart