Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ViewCellRelation.cs
- Base64Encoding.cs
- TrackBar.cs
- SizeF.cs
- Point3DIndependentAnimationStorage.cs
- XmlTextEncoder.cs
- NotifyIcon.cs
- EntityCommandExecutionException.cs
- FieldToken.cs
- CheckedPointers.cs
- CustomAttributeFormatException.cs
- ReferenceSchema.cs
- MenuItemStyleCollection.cs
- SystemFonts.cs
- SqlAliasesReferenced.cs
- StructuralComparisons.cs
- SecUtil.cs
- CodeDefaultValueExpression.cs
- SimpleType.cs
- DataBinding.cs
- SemaphoreFullException.cs
- DataKey.cs
- DBSqlParserTable.cs
- WebExceptionStatus.cs
- AdornerLayer.cs
- NativeWindow.cs
- WebPartUserCapability.cs
- Util.cs
- ZoneMembershipCondition.cs
- HierarchicalDataSourceControl.cs
- SymmetricAlgorithm.cs
- OdbcConnectionHandle.cs
- WebPartHelpVerb.cs
- BinaryParser.cs
- Int32RectValueSerializer.cs
- WmlControlAdapter.cs
- DiffuseMaterial.cs
- DoubleKeyFrameCollection.cs
- SQLMoney.cs
- GcSettings.cs
- WebBrowserNavigatedEventHandler.cs
- UniqueIdentifierService.cs
- TextLineResult.cs
- FrameworkTemplate.cs
- XsdDuration.cs
- DecimalAnimationUsingKeyFrames.cs
- Subordinate.cs
- TreeNodeBindingCollection.cs
- TypeTypeConverter.cs
- URLBuilder.cs
- Image.cs
- TemplateDefinition.cs
- ShapingEngine.cs
- XmlObjectSerializerWriteContextComplex.cs
- ObjectSpanRewriter.cs
- XsdDataContractImporter.cs
- IdentifierCreationService.cs
- MeshGeometry3D.cs
- ExtendedProperty.cs
- InstanceStore.cs
- Missing.cs
- PackageRelationshipSelector.cs
- ToolStripItemDesigner.cs
- SmiMetaData.cs
- RequestCacheValidator.cs
- GuidelineSet.cs
- _NTAuthentication.cs
- PlatformCulture.cs
- WriteableBitmap.cs
- WebBrowsableAttribute.cs
- GraphicsContainer.cs
- ConfigurationPropertyCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- ByteAnimationBase.cs
- ClientTarget.cs
- XPathAncestorQuery.cs
- TTSEngineTypes.cs
- EUCJPEncoding.cs
- SimpleBitVector32.cs
- AssemblyBuilder.cs
- PrinterSettings.cs
- UriTemplateMatchException.cs
- TemplateBindingExpression.cs
- Font.cs
- Gdiplus.cs
- WebBrowserPermission.cs
- WindowsListViewGroup.cs
- ProcessModelInfo.cs
- UnmanagedMemoryStreamWrapper.cs
- GCHandleCookieTable.cs
- IsolatedStorage.cs
- InputLanguage.cs
- GetPolicyDetailsRequest.cs
- TextAdaptor.cs
- FrameworkTextComposition.cs
- DelegateBodyWriter.cs
- RowTypeElement.cs
- NameValueFileSectionHandler.cs
- ReversePositionQuery.cs
- invalidudtexception.cs