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
- Logging.cs
- Attachment.cs
- Stream.cs
- Timer.cs
- Button.cs
- WebConfigurationHostFileChange.cs
- Win32.cs
- ConfigurationManagerHelper.cs
- TextServicesCompartment.cs
- CodeSnippetTypeMember.cs
- LingerOption.cs
- PlatformNotSupportedException.cs
- XamlPointCollectionSerializer.cs
- StrokeNodeData.cs
- EncryptedPackage.cs
- SqlExpander.cs
- CodeThrowExceptionStatement.cs
- Timeline.cs
- Win32.cs
- GridViewColumn.cs
- ClientBuildManagerCallback.cs
- InputBuffer.cs
- LinkUtilities.cs
- XmlDigitalSignatureProcessor.cs
- HttpInputStream.cs
- OverlappedAsyncResult.cs
- ShapeTypeface.cs
- OracleDataReader.cs
- DataRelationPropertyDescriptor.cs
- CorruptStoreException.cs
- Point.cs
- EntityException.cs
- AdapterUtil.cs
- Vector3DConverter.cs
- ResourceDefaultValueAttribute.cs
- Internal.cs
- ReferencedType.cs
- XXXInfos.cs
- MessageAction.cs
- BypassElement.cs
- PathSegment.cs
- Span.cs
- OletxCommittableTransaction.cs
- UpdateExpressionVisitor.cs
- UInt16.cs
- XmlEntity.cs
- SiteMapPathDesigner.cs
- TdsParserHelperClasses.cs
- BaseParagraph.cs
- KeyValuePairs.cs
- RadialGradientBrush.cs
- SQLChars.cs
- EntityObject.cs
- Operand.cs
- PropertyGeneratedEventArgs.cs
- FixedPosition.cs
- WebPartMenuStyle.cs
- RowParagraph.cs
- PathSegment.cs
- ConnectionStringsExpressionBuilder.cs
- XmlSchemaValidationException.cs
- ParallelTimeline.cs
- ObjectDataSourceDisposingEventArgs.cs
- FontCacheUtil.cs
- CellLabel.cs
- ActivationServices.cs
- ReadOnlyTernaryTree.cs
- SQLInt32Storage.cs
- CodeTypeMemberCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- DeclarationUpdate.cs
- SQLDoubleStorage.cs
- SimpleWebHandlerParser.cs
- Sequence.cs
- PropertyEmitter.cs
- WebPartConnectionsCancelVerb.cs
- ModelUIElement3D.cs
- Binding.cs
- MergePropertyDescriptor.cs
- X509Extension.cs
- URIFormatException.cs
- CompiledELinqQueryState.cs
- TransformDescriptor.cs
- ContentDisposition.cs
- WsdlBuildProvider.cs
- EventsTab.cs
- DataTableExtensions.cs
- HistoryEventArgs.cs
- FontStyleConverter.cs
- SymmetricSecurityProtocolFactory.cs
- XXXInfos.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- BridgeDataReader.cs
- DataGridViewCellMouseEventArgs.cs
- QilStrConcatenator.cs
- ExtensionSimplifierMarkupObject.cs
- FillRuleValidation.cs
- StringStorage.cs
- FactoryGenerator.cs
- assertwrapper.cs