| File: System\Windows\Media\textformatting\TextHidden.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\PresentationCore.csproj (PresentationCore) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // // // Contents: Implementation of text hidden content // // Spec: Text Formatting API.doc // // namespace System.Windows.Media.TextFormatting { /// <summary> /// Specialized text run used to mark a range of hidden characters /// </summary> public class TextHidden : TextRun { private int _length; #region Constructors /// <summary> /// Construct a hidden text run /// </summary> /// <param name="length">number of characters</param> public TextHidden( int length ) { ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length); _length = length; } #endregion /// <summary> /// Reference to character buffer /// </summary> public sealed override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(); } } /// <summary> /// Character length /// </summary> public sealed override int Length { get { return _length; } } /// <summary> /// A set of properties shared by every characters in the run /// </summary> public sealed override TextRunProperties Properties { get { return null; } } } }