Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextHidden.cs / 1305600 / 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
- TemplateInstanceAttribute.cs
- ToolStripGrip.cs
- RectConverter.cs
- IProvider.cs
- NativeMethods.cs
- DataStreamFromComStream.cs
- DataGridItem.cs
- QuaternionValueSerializer.cs
- Crc32.cs
- FreezableCollection.cs
- UnaryQueryOperator.cs
- TreeView.cs
- NativeMethods.cs
- ListDictionaryInternal.cs
- AlphabetConverter.cs
- DBSchemaRow.cs
- ContentElement.cs
- SchemaImporterExtension.cs
- DBConnectionString.cs
- WinFormsSecurity.cs
- CompensationDesigner.cs
- ValuePatternIdentifiers.cs
- ProxyWebPartConnectionCollection.cs
- OracleCommandSet.cs
- _LocalDataStore.cs
- WmlLabelAdapter.cs
- StatusBarAutomationPeer.cs
- PageClientProxyGenerator.cs
- NativeMethods.cs
- ChtmlLinkAdapter.cs
- GenericPrincipal.cs
- contentDescriptor.cs
- TextTreeObjectNode.cs
- SoapMessage.cs
- GCHandleCookieTable.cs
- ClientSettingsSection.cs
- ThreadPool.cs
- DWriteFactory.cs
- BindingMemberInfo.cs
- XmlIncludeAttribute.cs
- OrthographicCamera.cs
- ModuleConfigurationInfo.cs
- InvalidPrinterException.cs
- DelegateBodyWriter.cs
- SplitterCancelEvent.cs
- SynchronizationContext.cs
- IsolatedStoragePermission.cs
- ValidatorCollection.cs
- TextDocumentView.cs
- GeometryDrawing.cs
- JpegBitmapDecoder.cs
- listitem.cs
- MaterializeFromAtom.cs
- TextDecorationCollection.cs
- RoleBoolean.cs
- ExtendedPropertyDescriptor.cs
- MetadataException.cs
- CommandExpr.cs
- ApplicationContext.cs
- GridViewDeletedEventArgs.cs
- WorkflowMarkupSerializationException.cs
- assertwrapper.cs
- FixedLineResult.cs
- ArgumentValueSerializer.cs
- EpmCustomContentSerializer.cs
- StylusShape.cs
- SignatureToken.cs
- Util.cs
- DocumentViewerAutomationPeer.cs
- IndentTextWriter.cs
- MetadataSource.cs
- QilLiteral.cs
- EventLogTraceListener.cs
- CryptoStream.cs
- MenuCommand.cs
- MenuItem.cs
- ModifierKeysConverter.cs
- UnmanagedMemoryAccessor.cs
- VisualTarget.cs
- AlternationConverter.cs
- ErrorFormatter.cs
- StringSource.cs
- RawAppCommandInputReport.cs
- StringArrayConverter.cs
- SetterBaseCollection.cs
- ImageMetadata.cs
- HttpDebugHandler.cs
- BasicExpandProvider.cs
- LocatorPartList.cs
- ZipIOLocalFileHeader.cs
- StaticSiteMapProvider.cs
- TextInfo.cs
- XmlBaseWriter.cs
- DbConnectionHelper.cs
- TreeChangeInfo.cs
- XmlToDatasetMap.cs
- BinaryParser.cs
- GridItemPattern.cs
- SessionPageStatePersister.cs
- CodeThrowExceptionStatement.cs