Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlDataSource.cs
- DatasetMethodGenerator.cs
- Sorting.cs
- TreeWalkHelper.cs
- StringPropertyBuilder.cs
- TerminatorSinks.cs
- IndexerNameAttribute.cs
- SqlUDTStorage.cs
- FontNamesConverter.cs
- ObjectStateEntryDbDataRecord.cs
- ContextDataSource.cs
- XmlDocumentType.cs
- BlobPersonalizationState.cs
- FunctionQuery.cs
- ConfigViewGenerator.cs
- ItemsPanelTemplate.cs
- AppSecurityManager.cs
- FilterableAttribute.cs
- CodeNamespaceImport.cs
- ExtendedPropertyDescriptor.cs
- EmptyCollection.cs
- FixUp.cs
- CompositeDataBoundControl.cs
- TextSchema.cs
- ResponseBodyWriter.cs
- MethodBody.cs
- WaitHandleCannotBeOpenedException.cs
- HttpClientChannel.cs
- BitmapPalettes.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DBPropSet.cs
- EntityCommandCompilationException.cs
- Composition.cs
- Rotation3DKeyFrameCollection.cs
- sitestring.cs
- XhtmlBasicListAdapter.cs
- Section.cs
- _UncName.cs
- XmlFormatExtensionAttribute.cs
- WebHttpEndpoint.cs
- TextReader.cs
- HealthMonitoringSection.cs
- PageRequestManager.cs
- GeometryModel3D.cs
- WeakRefEnumerator.cs
- WebPartConnectionsCancelVerb.cs
- odbcmetadatacolumnnames.cs
- XmlnsDefinitionAttribute.cs
- QueryRewriter.cs
- TableDesigner.cs
- DurableOperationAttribute.cs
- Padding.cs
- StyleTypedPropertyAttribute.cs
- QualifiedId.cs
- URLAttribute.cs
- Documentation.cs
- RequestCache.cs
- SmiEventStream.cs
- SelectionEditingBehavior.cs
- TemplateBindingExpression.cs
- EngineSite.cs
- WebPartConnectionsConnectVerb.cs
- UserControl.cs
- FormCollection.cs
- HttpCookieCollection.cs
- KeyedHashAlgorithm.cs
- Command.cs
- MessageDecoder.cs
- CodeTryCatchFinallyStatement.cs
- TextShapeableCharacters.cs
- RsaSecurityTokenAuthenticator.cs
- JsonWriter.cs
- SqlDataSourceCommandEventArgs.cs
- ReachNamespaceInfo.cs
- followingsibling.cs
- DiscoveryClientReferences.cs
- DetailsViewRowCollection.cs
- DataServiceContext.cs
- ScriptServiceAttribute.cs
- DataGridViewRowEventArgs.cs
- Int32RectConverter.cs
- ParagraphResult.cs
- SmtpNegotiateAuthenticationModule.cs
- URLIdentityPermission.cs
- CAGDesigner.cs
- ReferencedType.cs
- LabelEditEvent.cs
- EventLog.cs
- AsnEncodedData.cs
- IntranetCredentialPolicy.cs
- CustomError.cs
- DataSourceUtil.cs
- InternalPermissions.cs
- AdapterDictionary.cs
- ComponentEvent.cs
- ExclusiveCanonicalizationTransform.cs
- MessageQueueCriteria.cs
- TextFormatterImp.cs
- TextEditorDragDrop.cs
- CachedBitmap.cs