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
- UIElement3D.cs
- Identity.cs
- milrender.cs
- StrokeNode.cs
- EllipseGeometry.cs
- SchemaNotation.cs
- ReadOnlyHierarchicalDataSource.cs
- SqlUdtInfo.cs
- ListBoxItemWrapperAutomationPeer.cs
- SelectionItemPattern.cs
- BeginEvent.cs
- ComponentEvent.cs
- Int64Storage.cs
- MailWriter.cs
- XmlElementAttribute.cs
- SqlNodeTypeOperators.cs
- ObjectQueryState.cs
- ListViewItemSelectionChangedEvent.cs
- EditorPartChrome.cs
- CodeTypeReferenceCollection.cs
- PriorityBindingExpression.cs
- NeutralResourcesLanguageAttribute.cs
- PageWrapper.cs
- XmlProcessingInstruction.cs
- PageSettings.cs
- LeftCellWrapper.cs
- hebrewshape.cs
- MouseBinding.cs
- InstanceKeyNotReadyException.cs
- SqlTransaction.cs
- dtdvalidator.cs
- XPathDocument.cs
- BrowsableAttribute.cs
- GeneralTransform3DCollection.cs
- WindowProviderWrapper.cs
- ZipPackagePart.cs
- TableLayoutStyle.cs
- XmlSchemaException.cs
- Message.cs
- IsolatedStorageFilePermission.cs
- LayoutEngine.cs
- WeakReference.cs
- SwitchDesigner.xaml.cs
- DataControlPagerLinkButton.cs
- TypeConverter.cs
- FixedSOMTable.cs
- WasHttpModulesInstallComponent.cs
- ParagraphResult.cs
- Utils.cs
- XPathExpr.cs
- PropertyGridCommands.cs
- RequestCachePolicy.cs
- SmtpSection.cs
- WebControlAdapter.cs
- METAHEADER.cs
- COM2Properties.cs
- TabItemAutomationPeer.cs
- DrawingAttributesDefaultValueFactory.cs
- SortedDictionary.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- XmlNavigatorFilter.cs
- ReaderContextStackData.cs
- TextChangedEventArgs.cs
- ColorKeyFrameCollection.cs
- TextViewSelectionProcessor.cs
- RepeatBehavior.cs
- JsonMessageEncoderFactory.cs
- XmlDictionary.cs
- XmlTextReaderImplHelpers.cs
- DateTime.cs
- FormParameter.cs
- BitmapEffectGeneralTransform.cs
- ButtonFieldBase.cs
- ConfigViewGenerator.cs
- ColumnReorderedEventArgs.cs
- Style.cs
- KeyValuePairs.cs
- WebConfigurationHostFileChange.cs
- SolidBrush.cs
- NonDualMessageSecurityOverHttp.cs
- FontFamilyValueSerializer.cs
- RecordBuilder.cs
- GorillaCodec.cs
- StateMachineDesignerPaint.cs
- PolyQuadraticBezierSegment.cs
- Stack.cs
- ServiceMetadataPublishingElement.cs
- DataTableReaderListener.cs
- ImageBrush.cs
- EntryPointNotFoundException.cs
- UriExt.cs
- ClientConfigurationSystem.cs
- ClockController.cs
- PointConverter.cs
- XhtmlStyleClass.cs
- EventHandlersDesigner.cs
- FusionWrap.cs
- ChildChangedEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- Trace.cs