IXpsOMSolidColorBrush インターフェイス (xpsobjectmodel.h)

単色ブラシ。

継承

IXpsOMSolidColorBrush インターフェイスは IXpsOMBrush から継承されます。 IXpsOMSolidColorBrush には、次の種類のメンバーもあります。

メソッド

IXpsOMSolidColorBrush インターフェイスには、これらのメソッドがあります。

 
IXpsOMSolidColorBrush::Clone

インターフェイスのディープ コピーを作成します。 (IXpsOMSolidColorBrush.Clone)
IXpsOMSolidColorBrush::GetColor

ブラシの色の値と色プロファイルを取得します。
IXpsOMSolidColorBrush::SetColor

ブラシの色の値と色プロファイルを設定します。

注釈

次のコード例は、このインターフェイスのインスタンスを作成する方法を示しています。


IXpsOMSolidColorBrush             *newInterface;
// The following values are defined outside of 
// this example.
//  XPS_COLOR                     color;
//  IXpsOMColorProfileResource    *colorProfile;

// 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->CreateSolidColorBrush (
        &color,
        colorProfile,
        &newInterface);

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

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

要件

要件
サポートされている最小のクライアント Windows 7、Windows Vista SP2 および Windows Vista 用プラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
サポートされている最小のサーバー Windows Server 2008 R2、Windows Server 2008 SP2 および Windows Server 2008 用プラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
対象プラットフォーム Windows
ヘッダー xpsobjectmodel.h

こちらもご覧ください

IXpsOMBrush

IXpsOMObjectFactory::CreateSolidColorBrush

IXpsOMObjectFactory::CreateSolidColorBrush

インターフェイス

XML Paper Specification