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
- Int64AnimationUsingKeyFrames.cs
- Label.cs
- ConfigurationSectionGroupCollection.cs
- TokenBasedSetEnumerator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RectValueSerializer.cs
- PageRanges.cs
- EncoderBestFitFallback.cs
- JsonFormatReaderGenerator.cs
- QueryProcessor.cs
- ZipIOBlockManager.cs
- ChildrenQuery.cs
- ProfilePropertySettings.cs
- WsatTransactionFormatter.cs
- PersistenceException.cs
- ColumnResizeAdorner.cs
- SByteStorage.cs
- sqlpipe.cs
- Column.cs
- PrintPreviewDialog.cs
- ConnectionPoolManager.cs
- ProfileModule.cs
- Pair.cs
- TrimSurroundingWhitespaceAttribute.cs
- JumpTask.cs
- CapabilitiesUse.cs
- Paragraph.cs
- GenericUriParser.cs
- SigningCredentials.cs
- TemplateBuilder.cs
- ArgumentOutOfRangeException.cs
- WindowsListViewGroupHelper.cs
- EllipticalNodeOperations.cs
- SharedPerformanceCounter.cs
- SafeArrayTypeMismatchException.cs
- InteropAutomationProvider.cs
- HttpBufferlessInputStream.cs
- DataSourceView.cs
- BitmapPalette.cs
- HtmlImageAdapter.cs
- DataViewManagerListItemTypeDescriptor.cs
- EngineSite.cs
- Panel.cs
- DataSetUtil.cs
- EngineSite.cs
- LocalBuilder.cs
- SqlConnectionFactory.cs
- SimpleWebHandlerParser.cs
- SqlDeflator.cs
- OleAutBinder.cs
- CacheDependency.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- QuadraticEase.cs
- KeyGestureValueSerializer.cs
- CategoriesDocumentFormatter.cs
- AudioLevelUpdatedEventArgs.cs
- RewritingSimplifier.cs
- DecimalFormatter.cs
- Expressions.cs
- WindowsGraphicsCacheManager.cs
- DbFunctionCommandTree.cs
- InvalidPrinterException.cs
- ResXBuildProvider.cs
- SafeProcessHandle.cs
- DbParameterCollectionHelper.cs
- sqlmetadatafactory.cs
- StorageFunctionMapping.cs
- WSFederationHttpBinding.cs
- BaseAsyncResult.cs
- LowerCaseStringConverter.cs
- DateTimeValueSerializerContext.cs
- TextServicesDisplayAttribute.cs
- PrtCap_Reader.cs
- UIElementCollection.cs
- StreamGeometryContext.cs
- FixedElement.cs
- ErrorHandlerFaultInfo.cs
- EventProviderWriter.cs
- ContentWrapperAttribute.cs
- AuthenticatingEventArgs.cs
- UnmanagedMarshal.cs
- Queue.cs
- HttpResponseHeader.cs
- RotateTransform.cs
- safelinkcollection.cs
- Privilege.cs
- ContractMethodParameterInfo.cs
- DbProviderFactories.cs
- ActiveXMessageFormatter.cs
- QueryAsyncResult.cs
- CornerRadius.cs
- DataGridBoolColumn.cs
- RTLAwareMessageBox.cs
- SelectorItemAutomationPeer.cs
- FloatUtil.cs
- InvokeHandlers.cs
- AQNBuilder.cs
- TemplatePropertyEntry.cs
- ToolStripCustomTypeDescriptor.cs
- CommonDialog.cs