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
- DataGridViewCellCollection.cs
- MenuItem.cs
- ContentTextAutomationPeer.cs
- Msec.cs
- BufferModesCollection.cs
- AvTraceFormat.cs
- CallbackDebugBehavior.cs
- XmlSignificantWhitespace.cs
- OperationCanceledException.cs
- StorageMappingItemCollection.cs
- ColorTranslator.cs
- ValueType.cs
- MobileControl.cs
- Serializer.cs
- SwitchCase.cs
- ObjectDataSourceSelectingEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BamlVersionHeader.cs
- ElementInit.cs
- MultiAsyncResult.cs
- RadialGradientBrush.cs
- CmsUtils.cs
- ZipIOCentralDirectoryBlock.cs
- SystemResourceHost.cs
- SmtpFailedRecipientsException.cs
- CircleHotSpot.cs
- SqlDataSourceView.cs
- ComboBox.cs
- EventWaitHandleSecurity.cs
- ImageClickEventArgs.cs
- SelectedGridItemChangedEvent.cs
- DoubleLinkList.cs
- SafeNativeMemoryHandle.cs
- XPathNavigatorReader.cs
- WebColorConverter.cs
- ResXBuildProvider.cs
- UnsafeNativeMethods.cs
- ZoomPercentageConverter.cs
- SqlDataSourceConfigureSortForm.cs
- Typography.cs
- ContextMenuService.cs
- SchemaType.cs
- TextElementAutomationPeer.cs
- AuthenticationException.cs
- ControllableStoryboardAction.cs
- ServerValidateEventArgs.cs
- DesigntimeLicenseContext.cs
- LinkedResource.cs
- CommandManager.cs
- ByteStreamMessageEncoderFactory.cs
- EventMemberCodeDomSerializer.cs
- InstanceCreationEditor.cs
- ComponentDispatcherThread.cs
- StringWriter.cs
- InteropTrackingRecord.cs
- HiddenField.cs
- ProjectionPathSegment.cs
- JapaneseLunisolarCalendar.cs
- Visual3D.cs
- EdmError.cs
- ApplicationProxyInternal.cs
- _NtlmClient.cs
- xmlsaver.cs
- unsafenativemethodsother.cs
- RotationValidation.cs
- DataControlFieldCell.cs
- XmlSchemaParticle.cs
- smtppermission.cs
- UniqueContractNameValidationBehavior.cs
- KeyedCollection.cs
- CfgParser.cs
- Converter.cs
- XPathParser.cs
- EntityTypeEmitter.cs
- ObjectListShowCommandsEventArgs.cs
- X509CertificateRecipientClientCredential.cs
- SingletonConnectionReader.cs
- OrderByLifter.cs
- SrgsElementList.cs
- RepeaterItemCollection.cs
- DataPagerFieldCommandEventArgs.cs
- ValidationSummary.cs
- MarkupCompilePass1.cs
- Subtree.cs
- AuthenticationModuleElementCollection.cs
- BitmapEffectInputData.cs
- SchemaObjectWriter.cs
- PermissionListSet.cs
- DateTimeOffsetStorage.cs
- DeadCharTextComposition.cs
- XmlExceptionHelper.cs
- SecureEnvironment.cs
- DebugInfoExpression.cs
- dataSvcMapFileLoader.cs
- HttpRequestMessageProperty.cs
- DBDataPermission.cs
- CanonicalFormWriter.cs
- ModuleConfigurationInfo.cs
- DiagnosticTrace.cs
- WmlLabelAdapter.cs