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
- Viewport3DVisual.cs
- HiddenFieldPageStatePersister.cs
- CompatibleIComparer.cs
- Tile.cs
- SessionStateUtil.cs
- RewritingProcessor.cs
- Input.cs
- DropShadowBitmapEffect.cs
- GenericRootAutomationPeer.cs
- CacheEntry.cs
- MimePart.cs
- AutomationAttributeInfo.cs
- SafeTimerHandle.cs
- CapabilitiesAssignment.cs
- MetadataCache.cs
- PropertyMetadata.cs
- ObjectView.cs
- ManagementScope.cs
- XmlAtomicValue.cs
- SerialErrors.cs
- CommonDialog.cs
- CommonXSendMessage.cs
- InternalControlCollection.cs
- SqlDependencyUtils.cs
- CounterSample.cs
- RectAnimationBase.cs
- DrawListViewSubItemEventArgs.cs
- Executor.cs
- ControlValuePropertyAttribute.cs
- InternalControlCollection.cs
- RemoveStoryboard.cs
- CacheForPrimitiveTypes.cs
- OptimalTextSource.cs
- ConfigurationManagerInternal.cs
- DataMemberAttribute.cs
- TableProviderWrapper.cs
- HitTestWithPointDrawingContextWalker.cs
- TabPage.cs
- DecimalConverter.cs
- QueryStringParameter.cs
- SharedPersonalizationStateInfo.cs
- ToolStripRenderer.cs
- InvokeMethod.cs
- KnownTypeAttribute.cs
- LineServices.cs
- ZipIOCentralDirectoryFileHeader.cs
- AppendHelper.cs
- OdbcTransaction.cs
- MediaPlayerState.cs
- SecurityTimestamp.cs
- XslCompiledTransform.cs
- RuntimeVariableList.cs
- Pts.cs
- PageAsyncTask.cs
- ServerValidateEventArgs.cs
- XpsThumbnail.cs
- TextEndOfParagraph.cs
- UriTemplateEquivalenceComparer.cs
- InnerItemCollectionView.cs
- TimeZoneInfo.cs
- FocusTracker.cs
- DockingAttribute.cs
- SafePEFileHandle.cs
- Form.cs
- XmlTextReaderImpl.cs
- XmlSchemaAttribute.cs
- Pair.cs
- Visitors.cs
- StringComparer.cs
- DefaultMemberAttribute.cs
- UrlMappingsSection.cs
- StateRuntime.cs
- CopyOfAction.cs
- AuthorizationRule.cs
- StructuralObject.cs
- SynchronizedDispatch.cs
- PolyLineSegmentFigureLogic.cs
- AuthenticationModuleElement.cs
- IndexerNameAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- UrlAuthFailedErrorFormatter.cs
- GeometryConverter.cs
- CryptoApi.cs
- DataGridViewCellLinkedList.cs
- MimeTypeAttribute.cs
- DesignerActionItemCollection.cs
- ByValueEqualityComparer.cs
- XmlMapping.cs
- Perspective.cs
- CheckBox.cs
- WebBrowserBase.cs
- BlurEffect.cs
- SvcMapFileLoader.cs
- XmlHierarchicalEnumerable.cs
- TraceLog.cs
- FixedSOMTableCell.cs
- UnmanagedMarshal.cs
- TraceHwndHost.cs
- MouseOverProperty.cs
- UdpTransportSettingsElement.cs