Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextSpan.cs / 1305600 / 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
- IIS7WorkerRequest.cs
- IisTraceListener.cs
- HtmlWindow.cs
- PropertyConverter.cs
- XmlWriter.cs
- SafeReadContext.cs
- SafeCryptContextHandle.cs
- RowType.cs
- ComplexTypeEmitter.cs
- AssociationSetEnd.cs
- BinaryObjectWriter.cs
- BufferedGraphicsManager.cs
- HyperlinkAutomationPeer.cs
- ImportContext.cs
- MimeMapping.cs
- ProcessProtocolHandler.cs
- SqlBuffer.cs
- ECDiffieHellmanPublicKey.cs
- MessageParameterAttribute.cs
- EntityObject.cs
- BigIntegerStorage.cs
- WizardSideBarListControlItemEventArgs.cs
- FormsAuthenticationTicket.cs
- CultureInfoConverter.cs
- FocusWithinProperty.cs
- ObjectTag.cs
- TerminateDesigner.cs
- StorageRoot.cs
- Helper.cs
- TemplateKeyConverter.cs
- oledbmetadatacolumnnames.cs
- PartitionedStreamMerger.cs
- SQLSingleStorage.cs
- FileUtil.cs
- DateTimeOffset.cs
- WsdlBuildProvider.cs
- WorkflowTraceTransfer.cs
- OpacityConverter.cs
- TransactedReceiveScope.cs
- HiddenFieldPageStatePersister.cs
- DBNull.cs
- ConfigXmlDocument.cs
- TableItemPattern.cs
- TogglePattern.cs
- _ChunkParse.cs
- IndexerNameAttribute.cs
- AssociationType.cs
- ScrollableControl.cs
- TreeView.cs
- RangeValuePattern.cs
- FilteredSchemaElementLookUpTable.cs
- StrongNamePublicKeyBlob.cs
- PrimitiveXmlSerializers.cs
- SQLGuid.cs
- EventLogPermissionEntry.cs
- SourceFileInfo.cs
- UnsafeNativeMethods.cs
- StorageMappingItemCollection.cs
- CodeDOMUtility.cs
- SimpleRecyclingCache.cs
- PointAnimation.cs
- ConfigXmlText.cs
- HttpSessionStateWrapper.cs
- DbMetaDataCollectionNames.cs
- TextPointerBase.cs
- TextEditorMouse.cs
- TimeSpanParse.cs
- SiteMapNodeCollection.cs
- RtfToXamlLexer.cs
- Propagator.Evaluator.cs
- SubclassTypeValidatorAttribute.cs
- RadioButton.cs
- RepeaterItemEventArgs.cs
- SerTrace.cs
- MimeBasePart.cs
- HierarchicalDataBoundControl.cs
- StylusSystemGestureEventArgs.cs
- InstancePersistence.cs
- TagNameToTypeMapper.cs
- MobileControlsSectionHelper.cs
- Timer.cs
- AddInDeploymentState.cs
- XamlSerializationHelper.cs
- MainMenu.cs
- TagPrefixAttribute.cs
- ContractMapping.cs
- SqlDataSourceStatusEventArgs.cs
- EventListener.cs
- OSEnvironmentHelper.cs
- CharKeyFrameCollection.cs
- DuplexClientBase.cs
- ToolStripRenderEventArgs.cs
- DataBindingHandlerAttribute.cs
- DebugControllerThread.cs
- DPCustomTypeDescriptor.cs
- CollectionEditorDialog.cs
- Deserializer.cs
- HotCommands.cs
- PolicyFactory.cs
- SamlAudienceRestrictionCondition.cs