(xpsobjectmodel.h) 的 IXpsOMPath 介面

描述非文字視覺效果專案。

繼承

IXpsOMPath 介面繼承自 IXpsOMVisualIXpsOMPath 也有下列類型的成員:

方法

IXpsOMPath 介面具有這些方法。

 
IXpsOMPath::Clone

製作介面的深層複本。 (IXpsOMPath.Clone)
IXpsOMPath::GetAccessibilityLongDescription

取得物件內容的詳細 (詳細) 文字描述。 (IXpsOMPath.GetAccessibilityLongDescription)
IXpsOMPath::GetAccessibilityShortDescription

取得對象的內容的簡短文字描述。
IXpsOMPath::GetFillBrush

取得解析的 IXpsOMBrush 介面指標,其中包含路徑的填滿筆刷。
IXpsOMPath::GetFillBrushLocal

取得本機未共用IXpsOMBrush 介面的指標,其中包含路徑的填滿筆刷。
IXpsOMPath::GetFillBrushLookup

取得儲存在資源字典中的筆刷查閱索引鍵,並做為路徑的填滿筆刷。
IXpsOMPath::GetGeometry

取得路徑 IXpsOMGeometry 介面的指標,此介面描述此路徑的已解析填滿區域。
IXpsOMPath::GetGeometryLocal

取得這個路徑之已解析填滿區域的本機、未共用幾何。
IXpsOMPath::GetGeometryLookup

取得儲存在資源字典中之共用幾何物件的查閱索引鍵,並描述此路徑的已解析填滿區域。
IXpsOMPath::GetSnapsToPixels

取得布爾值,指出路徑是否要在轉譯路徑時貼齊到裝置圖元。
IXpsOMPath::GetStrokeBrush

取得已解析之 IXpsOMBrush 介面的指標,其中包含為路徑設定的筆劃筆刷。
IXpsOMPath::GetStrokeBrushLocal

取得本機未共用IXpsOMBrush 介面的指標,其中包含路徑的筆劃筆刷。
IXpsOMPath::GetStrokeBrushLookup

取得儲存在資源字典中的筆刷查閱索引鍵,並做為路徑的筆劃筆刷。
IXpsOMPath::GetStrokeDashCap

取得要用於筆劃虛線的結束端點樣式。
IXpsOMPath::GetStrokeDashes

取得IXpsOMDashCollection 介面的指標,其中包含定義筆劃虛線圖樣XPS_DASH結構。
IXpsOMPath::GetStrokeDashOffset

取得從筆劃原點到虛線數位圖樣起點的位移。
IXpsOMPath::GetStrokeEndLineCap

取得筆劃線條結束端點的樣式。
IXpsOMPath::GetStrokeLineJoin

取得聯結筆劃線條的樣式。
IXpsOMPath::GetStrokeMiterLimit

取得為筆劃設定的miter限制值。
IXpsOMPath::GetStrokeStartLineCap

取得筆劃線開頭的線條大寫樣式。
IXpsOMPath::GetStrokeThickness

取得筆劃粗細。
IXpsOMPath::SetAccessibilityLongDescription

設定物件內容的長 (詳細) 文字描述。 (IXpsOMPath.SetAccessibilityLongDescription)
IXpsOMPath::SetAccessibilityShortDescription

設定物件內容的簡短文字描述。 (IXpsOMPath.SetAccessibilityShortDescription)
IXpsOMPath::SetFillBrushLocal

設定要當做填滿筆刷使用的本機未共用IXpsOMBrush 介面指標。
IXpsOMPath::SetFillBrushLookup

將資源字典中共用筆刷的查閱索引鍵名稱設定為填滿筆刷。
IXpsOMPath::SetGeometryLocal

設定本機未共用IXpsOMGeometry 介面的指標,其中包含要為此路徑設定之已解析填滿區域的幾何。
IXpsOMPath::SetGeometryLookup

設定資源字典中共用幾何的查閱索引鍵名稱。
IXpsOMPath::SetSnapsToPixels

設定布爾值,這個值表示在轉譯該路徑時,路徑是否會貼齊到裝置圖元。
IXpsOMPath::SetStrokeBrushLocal

設定要當做筆劃筆刷使用之本機未共用IXpsOMBrush 介面的指標。
IXpsOMPath::SetStrokeBrushLookup

設定要當做筆劃筆刷使用的共用筆刷查閱索引鍵名稱。
IXpsOMPath::SetStrokeDashCap

設定筆劃虛線端點的樣式。
IXpsOMPath::SetStrokeDashOffset

將筆劃原點的位移設定為虛線陣列圖樣起點。
IXpsOMPath::SetStrokeEndLineCap

設定筆劃線條結束端點的樣式。
IXpsOMPath::SetStrokeLineJoin

設定聯結筆劃線條的樣式。
IXpsOMPath::SetStrokeMiterLimit

設定路徑的miter限制。
IXpsOMPath::SetStrokeStartLineCap

設定筆劃線條開頭的筆劃線條大寫樣式。
IXpsOMPath::SetStrokeThickness

設定筆劃粗細。

備註

下列程式代碼範例說明如何建立此介面的實例。


IXpsOMPath    *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->CreatePath (&newInterface);

    if (SUCCEEDED(hr))
    {
        // use newInterface

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

規格需求

需求
最低支援的用戶端 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 xpsobjectmodel.h

另請參閱

IXpsOMObjectFactory::CreatePath

IXpsOMVisual

介面

XML Paper Specification