IXpsOMPath::SetGeometryLookup method (xpsobjectmodel.h)
Sets the lookup key name of a shared geometry in a resource dictionary.
Here, the geometry describes the resolved fill area to be set for this path.
Syntax
HRESULT SetGeometryLookup(
[in] LPCWSTR lookup
);
Parameters
[in] lookup
The lookup key name of a shared geometry in a resource dictionary.
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 |
---|---|
|
The method succeeded. |
|
According to the XML Paper Specification, the value of lookup is not a valid lookup key string. |
|
The lookup key name in lookup references an object that is not a geometry. |
|
No object could be found with a key name that matched the value passed in lookup. |
Remarks
After you call SetGeometryLookup, the local geometry is released and SetGeometryLocal returns a NULL pointer in the geometry 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 |
---|---|---|---|
The local geometry that is set by SetGeometryLocal. | The local geometry that is set by SetGeometryLocal. | NULL pointer. | |
SetGeometryLookup (this method) | The shared geometry retrieved, with a lookup key that matches the key that is 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
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 |