IXpsOMGeometry interface (xpsobjectmodel.h)

Describes the shape of a path or of a clipping region.

Inheritance

The IXpsOMGeometry interface inherits from IXpsOMShareable. IXpsOMGeometry also has these types of members:

Methods

The IXpsOMGeometry interface has these methods.

 
IXpsOMGeometry::Clone

Makes a deep copy of the interface. (IXpsOMGeometry.Clone)
IXpsOMGeometry::GetFigures

Gets a pointer to the geometry's IXpsOMGeometryFigureCollection interface, which contains the collection of figures that make up this geometry.
IXpsOMGeometry::GetFillRule

Gets the XPS_FILL_RULE value that describes the fill rule to be used.
IXpsOMGeometry::GetTransform

Gets a pointer to the geometry's IXpsOMMatrixTransform interface, which contains the resolved matrix transform for the geometry.
IXpsOMGeometry::GetTransformLocal

Gets a pointer to the IXpsOMMatrixTransform interface that contains the local, unshared matrix transform for the geometry.
IXpsOMGeometry::GetTransformLookup

Gets the lookup key for the IXpsOMMatrixTransform interface that contains the resolved matrix transform for the geometry.
IXpsOMGeometry::SetFillRule

Sets the XPS_FILL_RULE value that describes the fill rule to be used.
IXpsOMGeometry::SetTransformLocal

Sets the local, unshared matrix transform. (IXpsOMGeometry.SetTransformLocal)
IXpsOMGeometry::SetTransformLookup

Sets the lookup key name of a shared matrix transform in a resource dictionary. (IXpsOMGeometry.SetTransformLookup)

Remarks

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


IXpsOMGeometry    *newInterface;

// 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->CreateGeometry (&newInterface);
    if (SUCCEEDED(hr))
    {
        // use newInterface

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

Requirements

   
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

IXpsOMObjectFactory::CreateGeometry

IXpsOMShareable

Interfaces

XML Paper Specification