IXpsOMGeometryFigure interface (xpsobjectmodel.h)

Describes one portion of the path or clipping region that is specified by an IXpsOMGeometry interface.

Inheritance

The IXpsOMGeometryFigure interface inherits from the IUnknown interface. IXpsOMGeometryFigure also has these types of members:

Methods

The IXpsOMGeometryFigure interface has these methods.

 
IXpsOMGeometryFigure::Clone

Makes a deep copy of the interface. (IXpsOMGeometryFigure.Clone)
IXpsOMGeometryFigure::GetIsClosed

Gets a value that indicates whether the figure is closed.
IXpsOMGeometryFigure::GetIsFilled

Gets a value that indicates whether the figure is filled.
IXpsOMGeometryFigure::GetOwner

Gets a pointer to the IXpsOMGeometry interface that contains the geometry figure.
IXpsOMGeometryFigure::GetSegmentCount

Gets the number of segments in the figure.
IXpsOMGeometryFigure::GetSegmentData

Gets the segment data points for the geometry figure.
IXpsOMGeometryFigure::GetSegmentDataCount

Gets the number of segment data points in the figure.
IXpsOMGeometryFigure::GetSegmentStrokePattern

Gets the XPS_SEGMENT_STROKE_PATTERN value that indicates whether the segments in the figure are stroked.
IXpsOMGeometryFigure::GetSegmentStrokes

Gets stroke definitions for the figure's segments.
IXpsOMGeometryFigure::GetSegmentTypes

Gets the types of segments in the figure.
IXpsOMGeometryFigure::GetStartPoint

Gets the starting point of the figure.
IXpsOMGeometryFigure::SetIsClosed

Sets a value that indicates whether the figure is closed.
IXpsOMGeometryFigure::SetIsFilled

Sets a value that indicates whether the figure is filled.
IXpsOMGeometryFigure::SetSegments

Sets the segment information and data points for segments in the figure.
IXpsOMGeometryFigure::SetStartPoint

Sets the starting point of the figure.

Remarks

The IXpsOMGeometryFigure corresponds to the PathFigure element in XPS markup.

The code example that follows illustrates how to create an instance of this interface.


IXpsOMGeometryFigure    *newInterface;
// startPoint contains the starting point
// of the geometry figure being created
XPS_POINT                startPoint = {0,0};

// Note the implicit requirement that CoInitializeEx 
//  has previously been called from this thread.

hr = CoCreateInstance(
    __uuidof(XpsOMObjectFactory),
    NULL,
    CLSCTX_INPROC_SERVER,
    _uuidof(IXpsOMObjectFactory),
    reinterpret_cast<LPVOID*>(&xpsFactory)
    );

if (SUCCEEDED(hr))
{
    hr = xpsFactory->CreateGeometryFigure (&startPoint, &newInterface);
    if (SUCCEEDED(hr))
    {
        // use newInterface

        newInterface->Release();
    }
    xpsFactory->Release();
}
else
{
    // evaluate HRESULT error returned in hr
}

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IXpsOMGeometry

IXpsOMObjectFactory::CreateGeometryFigure

Interfaces

XML Paper Specification

XPS_SEGMENT_STROKE_PATTERN