IXpsOMCanvas interface (xpsobjectmodel.h)

A group of visual elements and related properties.

Inheritance

The IXpsOMCanvas interface inherits from IXpsOMVisual. IXpsOMCanvas also has these types of members:

Methods

The IXpsOMCanvas interface has these methods.

 
IXpsOMCanvas::Clone

Makes a deep copy of the interface. (IXpsOMCanvas.Clone)
IXpsOMCanvas::GetAccessibilityLongDescription

Gets the long (detailed) textual description of the object's contents. (IXpsOMCanvas.GetAccessibilityLongDescription)
IXpsOMCanvas::GetAccessibilityShortDescription

Gets a short textual description of the object's contents.
IXpsOMCanvas::GetDictionary

Gets a pointer to the resolved IXpsOMDictionary interface of the dictionary associated with the canvas.
IXpsOMCanvas::GetDictionaryLocal

Gets a pointer to the IXpsOMDictionary interface of the local, unshared dictionary.
IXpsOMCanvas::GetDictionaryResource

Gets a pointer to the IXpsOMRemoteDictionaryResource interface of the remote dictionary resource.
IXpsOMCanvas::GetUseAliasedEdgeMode

Gets a Boolean value that determines whether the edges of the objects in the canvas are to be rendered using the aliased edge mode.
IXpsOMCanvas::GetVisuals

Gets a pointer to an IXpsOMVisualCollection interface that contains a collection of the visual objects in the canvas.
IXpsOMCanvas::SetAccessibilityLongDescription

Sets the long (detailed) textual description of the object's contents. (IXpsOMCanvas.SetAccessibilityLongDescription)
IXpsOMCanvas::SetAccessibilityShortDescription

Sets the short textual description of the object's contents. (IXpsOMCanvas.SetAccessibilityShortDescription)
IXpsOMCanvas::SetDictionaryLocal

Sets the IXpsOMDictionary interface pointer of the local, unshared dictionary.
IXpsOMCanvas::SetDictionaryResource

Sets the IXpsOMRemoteDictionaryResource interface pointer of the remote dictionary resource.
IXpsOMCanvas::SetUseAliasedEdgeMode

Sets the value that determines whether the edges of objects in this canvas will be rendered using the aliased edge mode.

Remarks

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


IXpsOMCanvas    *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->CreateCanvas (&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

IXpsOMObjectFactory::CreateCanvas

IXpsOMVisual

Interfaces

XML Paper Specification