TextDecorationCollection.TryRemove Yöntem

Tanım

Geçerli koleksiyondan bir koleksiyonunu TextDecorations kaldırır ve sonuç (yeni) koleksiyonunu döndürür.

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

Parametreler

textDecorations
IEnumerable<TextDecoration>

Kaldırılacak koleksiyon.

result
TextDecorationCollection

Sonucu içeren Out parametresi. Geçerli koleksiyondan hiçbir öğe kaldırılmadıysa, result özgün koleksiyonla aynı olan yeni bir koleksiyondur.

Döndürülenler

true geçerli koleksiyondan en az bir öğe kaldırıldıysa; aksi takdirde , false.

Açıklamalar

Geçerli koleksiyon değişmeden kalır. Kaldırılacak koleksiyon geçerli koleksiyonun bir alt kümesi değilse, hiçbir öğe kaldırılmaz. Kaynak koleksiyonda bir öğenin birden çok örneği varsa, öğenin tüm örnekleri kaldırılır.

Şunlara uygulanır