Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextHidden.cs / 1 / TextHidden.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextHidden.cs // // Contents: Implementation of text hidden content // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Windows; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.TextFormatting { ////// Specialized text run used to mark a range of hidden characters /// public class TextHidden : TextRun { private int _length; #region Constructors ////// Construct a hidden text run /// /// number of characters public TextHidden( int length ) { if (length <= 0) { throw new ArgumentOutOfRangeException("length", SR.Get(SRID.ParameterMustBeGreaterThanZero)); } _length = length; } #endregion ////// Reference to character buffer /// public sealed override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(); } } ////// Character length /// public sealed override int Length { get { return _length; } } ////// A set of properties shared by every characters in the run /// public sealed override TextRunProperties Properties { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextHidden.cs // // Contents: Implementation of text hidden content // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Windows; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.TextFormatting { ////// Specialized text run used to mark a range of hidden characters /// public class TextHidden : TextRun { private int _length; #region Constructors ////// Construct a hidden text run /// /// number of characters public TextHidden( int length ) { if (length <= 0) { throw new ArgumentOutOfRangeException("length", SR.Get(SRID.ParameterMustBeGreaterThanZero)); } _length = length; } #endregion ////// Reference to character buffer /// public sealed override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(); } } ////// Character length /// public sealed override int Length { get { return _length; } } ////// A set of properties shared by every characters in the run /// public sealed override TextRunProperties Properties { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationCommands.cs
- ListViewGroupConverter.cs
- QuaternionValueSerializer.cs
- PenCursorManager.cs
- InfoCardX509Validator.cs
- AtomServiceDocumentSerializer.cs
- SmtpReplyReader.cs
- AssemblyResourceLoader.cs
- ContainerParagraph.cs
- SafeCryptoHandles.cs
- XsdDateTime.cs
- VisualStyleElement.cs
- ParallelDesigner.xaml.cs
- ParamArrayAttribute.cs
- FrameworkElementFactory.cs
- GradientSpreadMethodValidation.cs
- SettingsBase.cs
- ExchangeUtilities.cs
- WindowsToolbar.cs
- WeakRefEnumerator.cs
- TaskFactory.cs
- cookie.cs
- QilName.cs
- AssemblyNameEqualityComparer.cs
- ProgressChangedEventArgs.cs
- SchemaTableOptionalColumn.cs
- HandoffBehavior.cs
- RegistryPermission.cs
- FrameSecurityDescriptor.cs
- DataGridViewRowEventArgs.cs
- ButtonRenderer.cs
- HwndProxyElementProvider.cs
- CompilerHelpers.cs
- Filter.cs
- VirtualDirectoryMappingCollection.cs
- InstanceCreationEditor.cs
- TextBox.cs
- SHA256.cs
- ReflectionUtil.cs
- SafeRegistryHandle.cs
- SqlMethodCallConverter.cs
- HttpInputStream.cs
- CurrentChangingEventManager.cs
- X509ImageLogo.cs
- DirectoryObjectSecurity.cs
- ImageEditor.cs
- XmlExpressionDumper.cs
- OracleColumn.cs
- CacheAxisQuery.cs
- AssertFilter.cs
- ToolStripLabel.cs
- ExtentCqlBlock.cs
- ToolStripItemTextRenderEventArgs.cs
- MatrixTransform3D.cs
- DbXmlEnabledProviderManifest.cs
- Task.cs
- Region.cs
- FormViewPageEventArgs.cs
- UnknownBitmapEncoder.cs
- PropertySegmentSerializer.cs
- SourceCollection.cs
- Rect3DConverter.cs
- DirectoryLocalQuery.cs
- BuildProvidersCompiler.cs
- RelatedPropertyManager.cs
- PrimitiveXmlSerializers.cs
- WorkflowClientDeliverMessageWrapper.cs
- UIElementHelper.cs
- BuildResultCache.cs
- ByteStream.cs
- HitTestFilterBehavior.cs
- DropTarget.cs
- FastPropertyAccessor.cs
- HttpRuntime.cs
- ChannelOptions.cs
- StringPropertyBuilder.cs
- ExcCanonicalXml.cs
- SendKeys.cs
- AssemblyInfo.cs
- IriParsingElement.cs
- MergeExecutor.cs
- RequestQueryProcessor.cs
- HttpModuleCollection.cs
- Serializer.cs
- CallbackValidator.cs
- ReflectionPermission.cs
- HostingEnvironment.cs
- FrameSecurityDescriptor.cs
- MachineKeyConverter.cs
- Rfc4050KeyFormatter.cs
- BamlRecordWriter.cs
- XslTransform.cs
- GreenMethods.cs
- OracleBFile.cs
- SyndicationDeserializer.cs
- EmbeddedMailObject.cs
- RIPEMD160.cs
- Matrix3DConverter.cs
- OleDbSchemaGuid.cs
- TextFormatterContext.cs