Share via


ResourceDictionary 類別

定義

將識別碼字串對應至任意資源物件的 IDictionary。

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()

將識別碼字串對應至任意資源物件的 IDictionary。

屬性

Count

ResourceDictionary 中的項目數。

Item[String]

將識別碼字串對應至任意資源物件的 IDictionary。

Keys

ResourceDictionary 中為索引鍵的識別碼 string 集合。

MergedDictionaries

取得合併到這個字典的字典集合。

Source

取得或設定已合併資源字典的 URI。

Values

擷取 ResourceDictionary 的值。

方法

Add(ResourceDictionary)

mergedResourceDictionary 新增至 this 資源字典中的合併字典。

Add(String, Object)

keyvalue 以索引鍵/值組新增至 ResourceDictionary

Add(Style)

將隱含樣式新增至 ResourceDictionary。

Add(StyleSheet)

新增 styleSheetthis 資源字典的樣式表單清單。

Clear()

清空 ResourceDictionary

ContainsKey(String)

ResourceDictionary 是否包含 key 所識別的索引鍵/值組。

GetEnumerator()

傳回 ResourceDictionaryKeyValuePair<TKey,TValue>IEnumerator<T>

Remove(String)

ResourceDictionary 移除由 key 所識別的索引鍵和值。

SetAndLoadSource(Uri, String, Assembly, IXmlLineInfo)

供 Microsoft.Maui.Controls 平台內部使用。

TryGetValue(String, Object)

將識別碼字串對應至任意資源物件的 IDictionary。

明確介面實作

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

將識別碼字串對應至任意資源物件的 IDictionary。

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

將識別碼字串對應至任意資源物件的 IDictionary。

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

將識別碼字串對應至任意資源物件的 IDictionary。

ICollection<KeyValuePair<String,Object>>.IsReadOnly

將識別碼字串對應至任意資源物件的 IDictionary。

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

將識別碼字串對應至任意資源物件的 IDictionary。

IEnumerable.GetEnumerator()

將識別碼字串對應至任意資源物件的 IDictionary。

IResourceDictionary.ValuesChanged

將識別碼字串對應至任意資源物件的 IDictionary。

適用於