/// <summary> Disables the <see cref="T:System.Windows.Media.TextEffect" /> on the effect target. </summary> // Token: 0x06003927 RID: 14631 RVA: 0x00103270 File Offset: 0x00101470 public void Disable() { TextEffectCollection textEffects = DynamicPropertyReader.GetTextEffects(this._element); if (textEffects != null) { for (int i = 0; i < textEffects.Count; i++) { if (textEffects[i] == this._effect) { textEffects.RemoveAt(i); return; } } } }
/// <summary> /// Disable TextEffect on the target. If the texteffect is /// already disabled, this will be a no-op. /// </summary> public void Disable() { TextEffectCollection textEffects = DynamicPropertyReader.GetTextEffects(_element); if (textEffects != null) { for (int i = 0; i < textEffects.Count; i++) { if (textEffects[i] == _effect) { // remove the exact instance of the effect from the collection textEffects.RemoveAt(i); return; } } } }