Windows Dev Center

Expand Minimize

IXpsOMGeometry interface

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

When to implement

Never. Custom implementation of this interface is not supported.

Members

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

Methods

The IXpsOMGeometry interface has these methods.

MethodDescription
Clone

Makes a deep copy of the interface.

GetFigures

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

GetFillRule

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

GetTransform

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

GetTransformLocal

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

GetTransformLookup

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

SetFillRule

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

SetTransformLocal

Sets the local, unshared matrix transform.

SetTransformLookup

Sets the lookup key name of a shared matrix transform in a resource dictionary.

 

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 | 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

IXpsOMShareable
IXpsOMObjectFactory::CreateGeometry
Interfaces
XML Paper Specification

 

 

Community Additions

ADD
Show:
© 2015 Microsoft