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

結果を含む Out パラメーター。 現在のコレクションから要素が削除されなかった場合は、 result 元のコレクションと同じ新しいコレクションになります。

戻り値

少なくとも 1 つの項目が現在のコレクションから削除された場合は true、それ以外の場合は false

注釈

現在のコレクションは変更されません。 削除するコレクションが現在のコレクションのサブセットでない場合、要素は削除されません。 ソース コレクションに項目の複数のインスタンスがある場合、項目のすべてのインスタンスが削除されます。

適用対象