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는 원래 컬렉션과 동일한 새 컬렉션입니다.

반환

Boolean

현재 컬렉션에서 하나 이상의 항목이 제거된 경우 true이고, 그렇지 않으면 false입니다.

설명

현재 컬렉션은 변경되지 않은 상태로 유지됩니다. 제거할 컬렉션이 현재 컬렉션의 하위 집합이 아닌 경우 요소가 제거되지 않습니다. 원본 컬렉션에 항목의 여러 인스턴스가 있는 경우 항목의 모든 인스턴스가 제거됩니다.

적용 대상