次の方法で共有


ResourceDictionary クラス

定義

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

public ref class ResourceDictionary : Microsoft::Maui::Controls::Internals::IResourceDictionary, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public class ResourceDictionary : Microsoft.Maui.Controls.Internals.IResourceDictionary, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type ResourceDictionary = class
    interface IResourceDictionary
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
Public Class ResourceDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IResourceDictionary
継承
ResourceDictionary
実装

コンストラクター

名前 説明
ResourceDictionary()

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

プロパティ

名前 説明
Count

ディクショナリ内のエントリの数を取得します。

Item[String]

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

Keys

ディクショナリ内のキーである識別子文字列のコレクションを取得します。

MergedDictionaries

このディクショナリにマージされたディクショナリのコレクションを取得します。

Source

マージされたリソース ディクショナリの URI を取得または設定します。

Values

ディクショナリに格納されている値のコレクションを取得します。

メソッド

名前 説明
Add(ResourceDictionary)

マージされたディクショナリ コレクションにリソース ディクショナリを追加します。

Add(String, Object)

キーと値のペアをディクショナリに追加します。

Add(Style)

暗黙的なスタイルをディクショナリに追加します。

Add(StyleSheet)

スタイル シートをディクショナリに追加します。

Clear()

ディクショナリからすべての項目を削除します。

ContainsKey(String)

指定したキーで識別されるキーと値のペアがディクショナリに含まれているかどうかを返します。

GetEnumerator()

ディクショナリのキーと値のペアを反復処理する列挙子を返します。

Remove(String)

指定したキーによって識別されるキーと値のペアを削除します。

SetAndCreateSource<T>(Uri)

MAUI プラットフォームで内部使用する場合。

SetAndLoadSource(Uri, String, Assembly, IXmlLineInfo)

MAUI プラットフォームで内部使用する場合。

TryGetValue(String, Object)

指定したキーに関連付けられている値の取得を試みます。

明示的なインターフェイスの実装

名前 説明
ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>)

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32)

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

ICollection<KeyValuePair<String,Object>>.IsReadOnly

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>)

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

IEnumerable.GetEnumerator()

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

IResourceDictionary.ValuesChanged

識別子文字列を任意のリソース オブジェクトにマップするディクショナリ。

適用対象