TextDecorationCollection.TryRemove Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a collection of TextDecorations from the current collection and returns the resultant (new) collection.
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>
The collection to be removed.
- result
- TextDecorationCollection
Out parameter containing the result. If no element was removed from the current collection, then result
is a new collection identical to the original one.
true
if at least one item was removed from the current collection; otherwise, false
.
The current collection remains unchanged. If the collection to be removed is not a subset of the current collection, then no element is removed. If the source collection has multiple instances of an item, then all instances of the item are removed.
Προϊόν | Εκδόσεις |
---|---|
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET σχόλια
.NET είναι ένα έργο ανοιχτού κώδικα. Επιλέξτε μια σύνδεση για να παρέχετε σχόλια: