Freigeben über


IXpsOMGeometryFigure::SetIsClosed method

Sets a value that indicates whether the figure is closed.

Syntax

HRESULT SetIsClosed(
  [in] BOOL isClosed
);

Parameters

  • isClosed [in]
    The value to be set.

    Value Meaning
    TRUE

    The figure is closed. A line segment between the start point and the last point defined in the figure will be stroked.

    FALSE

    The figure is open. There is no line segment between the start point and the last point defined in the figure.

     

Return value

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

Remarks

This value only applies if the PathFigure attribute is used in the Path element that specifies a stroke.

A closed figure adds a line segment between the start point and the end point of the figure to close the shape.

This value corresponds to that of the IsClosed element of the PathFigure element in the document markup.

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

IXpsOMGeometryFigure

XML Paper Specification