TextDecorationCollection.TryRemove 方法

定義

從目前的集合移除 TextDecorations,並傳回產生的 (新) 集合。

public:
 bool TryRemove(System::Collections::Generic::IEnumerable<System::Windows::TextDecoration ^> ^ textDecorations, [Runtime::InteropServices::Out] System::Windows::TextDecorationCollection ^ % result);
public bool TryRemove (System.Collections.Generic.IEnumerable<System.Windows.TextDecoration> textDecorations, out System.Windows.TextDecorationCollection result);
member this.TryRemove : seq<System.Windows.TextDecoration> * TextDecorationCollection -> bool
Public Function TryRemove (textDecorations As IEnumerable(Of TextDecoration), ByRef result As TextDecorationCollection) As Boolean

參數

textDecorations
IEnumerable<TextDecoration>

要移除的集合。

result
TextDecorationCollection

包含結果的輸出參數。 如果沒有任何項目從目前的集合移除,則 result 是等同原始集合的新集合。

傳回

Boolean

若至少有一個項目已從目前的集合中移除,則為 true;否則為 false

備註

目前的集合會保持不變。 如果要移除的集合不是目前集合的子集,則不會移除任何專案。 如果來源集合有多個專案實例,則會移除專案的所有實例。

適用於