Share via


IXpsOMGlyphsEditor::SetBidiLevel method

Sets the level of bidirectional text.

Syntax

HRESULT SetBidiLevel(
  [in] UINT32 bidiLevel
);

Parameters

  • bidiLevel [in]
    The level of bidirectional text.

    Range: 0–61

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For information about XPS document API return values that are not listed in this table, see XPS Document Errors.

Return code Description
S_OK

The method succeeded.

E_INVALIDARG

The value of bidiLevel is outside of the allowed range. For more information, see the Remarks section.

 

Remarks

The BidiLevel property specifies the bidirectional nesting level of the Unicode algorithm. Even values imply the left-to-right layout and odd values the right-to-left layout. Right-to-left layout places the run origin on the right side of the first glyph. Advance widths that are positive will move to the left, allowing subsequent glyphs to be placed to the left of the previous glyph.

The range of allowed values for this property is between 0 and 61, inclusive, and the default value is 0.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

IXpsOMGlyphsEditor

XPS Document Errors

XML Paper Specification