Partager via


IXpsOMTileBrush::SetTileMode method

Sets the XPS_TILE_MODE value that describes the tiling mode of the brush.

Syntax

HRESULT SetTileMode(
  [in] XPS_TILE_MODE tileMode
);

Parameters

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Return code Description
S_OK

The method succeeded.

E_INVALIDARG

tileMode was not a valid XPS_TILE_MODE value.

 

Remarks

The tile mode determines how the tile image is repeated to fill the output area. If the tile mode value is XPS_TILE_MODE_NONE, the tile image is drawn only once.

An illustration that shows different examples of different tile mode behaviors

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

IXpsOMTileBrush

XPS_TILE_MODE

XML Paper Specification