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
- StreamUpgradeBindingElement.cs
- SHA1Managed.cs
- SignatureTargetIdManager.cs
- TreeViewDesigner.cs
- TargetPerspective.cs
- Subtree.cs
- MenuBindingsEditorForm.cs
- TextPointer.cs
- ZipPackagePart.cs
- GuidelineSet.cs
- XmlSchemaAnyAttribute.cs
- ElementHostAutomationPeer.cs
- DispatcherHooks.cs
- TemplateEditingService.cs
- SqlInternalConnectionTds.cs
- WindowsRichEdit.cs
- MULTI_QI.cs
- SqlClientFactory.cs
- ProcessThread.cs
- WsdlInspector.cs
- SmtpNetworkElement.cs
- Component.cs
- BidOverLoads.cs
- DbProviderFactories.cs
- Misc.cs
- SecurityAlgorithmSuiteConverter.cs
- COM2PropertyBuilderUITypeEditor.cs
- EntityCommandCompilationException.cs
- XMLDiffLoader.cs
- Authorization.cs
- ListBoxChrome.cs
- ButtonColumn.cs
- ReflectionPermission.cs
- OleServicesContext.cs
- CapacityStreamGeometryContext.cs
- StateManagedCollection.cs
- CompressedStack.cs
- SafeBitVector32.cs
- BulletedListEventArgs.cs
- DNS.cs
- CookieParameter.cs
- ClassGenerator.cs
- FileDialogCustomPlace.cs
- WebSysDescriptionAttribute.cs
- XmlProcessingInstruction.cs
- ToolboxCategory.cs
- ContractBase.cs
- SqlTypeSystemProvider.cs
- PeerPresenceInfo.cs
- EffectiveValueEntry.cs
- VisualStyleTypesAndProperties.cs
- ServiceProviders.cs
- TextEmbeddedObject.cs
- SQLBytes.cs
- DeviceContexts.cs
- SecurityException.cs
- BindingOperations.cs
- httpapplicationstate.cs
- SQLByte.cs
- ProtocolsConfigurationHandler.cs
- BitmapDownload.cs
- BmpBitmapDecoder.cs
- OracleParameterBinding.cs
- MediaTimeline.cs
- XmlSchemaException.cs
- FilterRepeater.cs
- DefaultTextStoreTextComposition.cs
- EllipseGeometry.cs
- DispatchChannelSink.cs
- SqlInfoMessageEvent.cs
- WebEvents.cs
- HandlerFactoryCache.cs
- Html32TextWriter.cs
- XPathNode.cs
- DesignTimeType.cs
- ImageFormat.cs
- DispatcherExceptionEventArgs.cs
- DbDeleteCommandTree.cs
- XmlSchemaInfo.cs
- AuthenticationModuleElementCollection.cs
- TraceSection.cs
- DescendantBaseQuery.cs
- SafeFileHandle.cs
- XmlSchemas.cs
- XmlMemberMapping.cs
- OleDbSchemaGuid.cs
- WebPartCatalogAddVerb.cs
- FixedSchema.cs
- RNGCryptoServiceProvider.cs
- ValidationSummary.cs
- ExpressionPrefixAttribute.cs
- XpsThumbnail.cs
- SocketAddress.cs
- SmtpFailedRecipientException.cs
- ApplicationException.cs
- EventLogEntryCollection.cs
- Propagator.cs
- InheritanceAttribute.cs
- SqlUtil.cs
- ObjectAnimationUsingKeyFrames.cs