Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TagNameToTypeMapper.cs
- WinCategoryAttribute.cs
- SynchronizationContext.cs
- ErrorReporting.cs
- TextTreeInsertElementUndoUnit.cs
- TcpPortSharing.cs
- GenericEnumerator.cs
- TableDetailsCollection.cs
- CipherData.cs
- HMACSHA256.cs
- DataGridViewRowEventArgs.cs
- IncrementalReadDecoders.cs
- ColumnHeader.cs
- ClosureBinding.cs
- ScrollProviderWrapper.cs
- EnumDataContract.cs
- SetIterators.cs
- DataPagerFieldCollection.cs
- ToolStripRenderer.cs
- XmlRootAttribute.cs
- _OSSOCK.cs
- ObjRef.cs
- ChtmlFormAdapter.cs
- WmlTextBoxAdapter.cs
- BasicDesignerLoader.cs
- DefaultProxySection.cs
- Version.cs
- OracleInternalConnection.cs
- LinkDescriptor.cs
- XDRSchema.cs
- CopyCodeAction.cs
- XmlFormatWriterGenerator.cs
- GridItem.cs
- ToolStripContentPanel.cs
- ConfigurationPropertyCollection.cs
- TreeView.cs
- PanelStyle.cs
- InputProviderSite.cs
- HttpResponseWrapper.cs
- PeerCollaborationPermission.cs
- XmlSchemaValidationException.cs
- WindowsStartMenu.cs
- TypeInitializationException.cs
- BindingWorker.cs
- AsymmetricKeyExchangeFormatter.cs
- GenericIdentity.cs
- ExternalException.cs
- exports.cs
- XmlSchemaSimpleTypeRestriction.cs
- TextChange.cs
- ToolStripProgressBar.cs
- TextSearch.cs
- XmlNavigatorStack.cs
- cookiecontainer.cs
- InteropBitmapSource.cs
- TextProviderWrapper.cs
- Convert.cs
- GridViewCancelEditEventArgs.cs
- BehaviorEditorPart.cs
- SizeIndependentAnimationStorage.cs
- SqlError.cs
- _ConnectOverlappedAsyncResult.cs
- UnsafeNativeMethods.cs
- DoubleAnimationClockResource.cs
- EncryptedKeyHashIdentifierClause.cs
- CreateWorkflowOwnerCommand.cs
- TileBrush.cs
- DataListItem.cs
- InvalidProgramException.cs
- XmlKeywords.cs
- CharAnimationBase.cs
- ProcessHostConfigUtils.cs
- TextTreeDeleteContentUndoUnit.cs
- AuthenticationConfig.cs
- SrgsDocumentParser.cs
- ISAPIApplicationHost.cs
- TemplatePropertyEntry.cs
- PersonalizationProvider.cs
- Int32RectValueSerializer.cs
- _NestedSingleAsyncResult.cs
- MessageFilter.cs
- SelectQueryOperator.cs
- VersionValidator.cs
- AtlasWeb.Designer.cs
- CacheRequest.cs
- UIntPtr.cs
- MutexSecurity.cs
- EdmProviderManifest.cs
- InlineCollection.cs
- handlecollector.cs
- HostingEnvironmentException.cs
- QueryStringConverter.cs
- Border.cs
- TabPageDesigner.cs
- FindCriteria11.cs
- SponsorHelper.cs
- MappingModelBuildProvider.cs
- HttpDictionary.cs
- PersonalizableAttribute.cs
- bindurihelper.cs