ITextDocument::SetDefaultTabStop method (tom.h)

Sets the default tab stop, which is used when no tab exists beyond the current display position.

Syntax

HRESULT SetDefaultTabStop(
  [in] float Value
);

Parameters

[in] Value

Type: float

New default tab setting, in floating-point points. Default value is 36.0 points, that is, 0.5 inches.

Return value

Type: HRESULT

If the method succeeds it returns S_OK. If the method fails, it returns one of the following COM error codes. For more information on COM error codes, see Error Handling in COM.

Return code Description
E_INVALIDARG
Invalid argument.
E_OUTOFMEMORY
Insufficient memory.

Requirements

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

See also

AddTab

ClearAllTabs

Conceptual

DeleteTab

GetDefaultTabStop

GetListTab

GetTab

GetTabCount

ITextDocument

Reference

SetListTab

Text Object Model