共用方式為


IXpsOMPath::SetGeometryLocal method

Sets the pointer to the local, unshared IXpsOMGeometry interface that contains the geometry of the resolved fill area to be set for this path.

Syntax

HRESULT SetGeometryLocal(
  [in] IXpsOMGeometry *geometry
);

Parameters

  • geometry [in]
    The pointer to the local, unshared IXpsOMGeometry interface that contains the geometry of the resolved fill area to be set for this path.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For information about XPS document API return values that are not listed in this table, see XPS Document Errors.

Return code Description
S_OK

The method succeeded.

XPS_E_NO_CUSTOM_OBJECTS

geometry does not point to a recognized interface implementation. Custom implementation of XPS Document API interfaces is not supported.

 

Remarks

After you call SetGeometryLocal, the geometry lookup key is released and GetGeometryLookup returns a NULL pointer in the lookup parameter. The table that follows explains the relationship between the local and lookup values of this property.

Most recent method called Object that is returned in geometry by GetGeometry Object that is returned in geometry by GetGeometryLocal String that is returned in lookup by GetGeometryLookup

SetGeometryLocal (this method)

The local geometry that is set by SetGeometryLocal.

The local geometry that is set by SetGeometryLocal.

NULL pointer.

SetGeometryLookup

The shared geometry retrieved, with a lookup key that matches the key set by SetGeometryLookup, from the resource directory.

NULL pointer.

The lookup key that is set by SetGeometryLookup.

Neither SetGeometryLocal nor SetGeometryLookup has been called yet.

NULL pointer.

NULL pointer.

NULL pointer.

 

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

IXpsOMPath

XPS Document Errors

XML Paper Specification