Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextSpan.cs / 1 / TextSpan.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation // // File: TextSpan.cs // // Contents: A simple pairing of an object of type T and a run length // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 2-5-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; namespace System.Windows.Media.TextFormatting { ////// A simple pairing of an object of type T and a run length /// public class TextSpan{ private int _length; private T _value; /// /// Construct an object/length pairing /// /// run length /// value public TextSpan( int length, T value ) { _length = length; _value = value; } ////// Number of characters in span /// public int Length { get { return _length; } } ////// Value associated with span /// public T Value { get { return _value; } } } } // 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 // // File: TextSpan.cs // // Contents: A simple pairing of an object of type T and a run length // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 2-5-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; namespace System.Windows.Media.TextFormatting { ////// A simple pairing of an object of type T and a run length /// public class TextSpan{ private int _length; private T _value; /// /// Construct an object/length pairing /// /// run length /// value public TextSpan( int length, T value ) { _length = length; _value = value; } ////// Number of characters in span /// public int Length { get { return _length; } } ////// Value associated with span /// public T Value { get { return _value; } } } } // 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
- StringUtil.cs
- RequestCachePolicyConverter.cs
- SaveLedgerEntryRequest.cs
- ParentUndoUnit.cs
- ClientProxyGenerator.cs
- PointAnimationUsingPath.cs
- Mappings.cs
- CodeTypeMemberCollection.cs
- DateTimeConstantAttribute.cs
- ProtectedProviderSettings.cs
- NextPreviousPagerField.cs
- GACIdentityPermission.cs
- WebPartHelpVerb.cs
- BaseCodePageEncoding.cs
- AuthenticateEventArgs.cs
- InstanceDataCollectionCollection.cs
- HMACRIPEMD160.cs
- Ref.cs
- FileCodeGroup.cs
- TemplatedWizardStep.cs
- CommentEmitter.cs
- ACE.cs
- VariantWrapper.cs
- ActivationArguments.cs
- Utils.cs
- AlignmentXValidation.cs
- HwndMouseInputProvider.cs
- Underline.cs
- WeakReference.cs
- RightsManagementInformation.cs
- CorrelationManager.cs
- ListSortDescriptionCollection.cs
- XmlIlVisitor.cs
- RemoteWebConfigurationHostStream.cs
- KerberosSecurityTokenAuthenticator.cs
- HttpCacheVary.cs
- DefaultPrintController.cs
- TemplateContentLoader.cs
- IdnMapping.cs
- Ops.cs
- InternalPolicyElement.cs
- PropertyStore.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- InfoCardArgumentException.cs
- CanExecuteRoutedEventArgs.cs
- PageCodeDomTreeGenerator.cs
- BitmapMetadata.cs
- SizeKeyFrameCollection.cs
- WebControlsSection.cs
- FocusTracker.cs
- PageCatalogPartDesigner.cs
- CatalogZone.cs
- MatrixTransform3D.cs
- DecimalAnimation.cs
- ArcSegment.cs
- PieceNameHelper.cs
- DbSetClause.cs
- FilterElement.cs
- ComponentResourceManager.cs
- DocumentScope.cs
- DataSourceControl.cs
- XmlToDatasetMap.cs
- HebrewCalendar.cs
- GroupLabel.cs
- LocatorPart.cs
- NativeMethods.cs
- EmbeddedMailObject.cs
- Stackframe.cs
- ByteKeyFrameCollection.cs
- SqlRetyper.cs
- SspiNegotiationTokenAuthenticator.cs
- Accessible.cs
- BindingExpression.cs
- ParameterModifier.cs
- SimpleHandlerFactory.cs
- SearchForVirtualItemEventArgs.cs
- FixedPageProcessor.cs
- RawStylusInputCustomData.cs
- StateManagedCollection.cs
- WeakRefEnumerator.cs
- WebPartMenu.cs
- WebPartConnectionsConfigureVerb.cs
- ScrollData.cs
- ContextMenuAutomationPeer.cs
- TransactionScopeDesigner.cs
- DelegatingTypeDescriptionProvider.cs
- PackageRelationshipSelector.cs
- DelegateHelpers.cs
- ConfigXmlText.cs
- CellConstantDomain.cs
- GuidelineCollection.cs
- FormViewInsertEventArgs.cs
- TableLayoutStyleCollection.cs
- ProcessingInstructionAction.cs
- KeyedHashAlgorithm.cs
- HuffmanTree.cs
- ViewService.cs
- BuildManagerHost.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ElementProxy.cs