TextDecorationCollection.TryRemove Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Tar bort en samling TextDecorations från den aktuella samlingen och returnerar den resulterande (nya) samlingen.
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
Parametrar
- textDecorations
- IEnumerable<TextDecoration>
Samlingen som ska tas bort.
- result
- TextDecorationCollection
Out-parameter som innehåller resultatet. Om inget element har tagits bort från den aktuella samlingen är en result ny samling identisk med den ursprungliga.
Returer
trueom minst ett objekt har tagits bort från den aktuella samlingen. annars . false
Kommentarer
Den aktuella samlingen förblir oförändrad. Om samlingen som ska tas bort inte är en delmängd av den aktuella samlingen tas inget element bort. Om källsamlingen har flera instanser av ett objekt tas alla instanser av objektet bort.