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
- ICspAsymmetricAlgorithm.cs
- ProtocolsConfiguration.cs
- AnnouncementSendsAsyncResult.cs
- StoragePropertyMapping.cs
- ThreadExceptionEvent.cs
- EventManager.cs
- GradientStop.cs
- EdmFunction.cs
- ReferencedCollectionType.cs
- HeaderedContentControl.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- validationstate.cs
- ServiceOperationWrapper.cs
- PointAnimation.cs
- HttpStaticObjectsCollectionWrapper.cs
- TextCollapsingProperties.cs
- UserControlParser.cs
- HeaderedContentControl.cs
- DbMetaDataColumnNames.cs
- ArglessEventHandlerProxy.cs
- TagMapInfo.cs
- ObjectDataSourceChooseTypePanel.cs
- PasswordTextContainer.cs
- XmlSerializationGeneratedCode.cs
- HandleExceptionArgs.cs
- DocumentViewerConstants.cs
- BypassElement.cs
- RsaSecurityToken.cs
- ControlBindingsCollection.cs
- ClientUtils.cs
- RadioButtonRenderer.cs
- SqlServices.cs
- ConnectAlgorithms.cs
- IncomingWebResponseContext.cs
- LinqToSqlWrapper.cs
- SpellerInterop.cs
- ViewStateChangedEventArgs.cs
- CancelRequestedRecord.cs
- ValueConversionAttribute.cs
- ColorInterpolationModeValidation.cs
- RemoteWebConfigurationHostStream.cs
- TailCallAnalyzer.cs
- MarshalByRefObject.cs
- TerminatorSinks.cs
- LocatorBase.cs
- ViewStateModeByIdAttribute.cs
- FixedSOMTableCell.cs
- NoClickablePointException.cs
- PersonalizationEntry.cs
- XmlDataProvider.cs
- SafeRightsManagementQueryHandle.cs
- DrawListViewItemEventArgs.cs
- CroppedBitmap.cs
- MessageLogger.cs
- BevelBitmapEffect.cs
- BaseTemplateParser.cs
- ConfigurationStrings.cs
- Effect.cs
- HandleScope.cs
- BaseHashHelper.cs
- SafeNativeMethods.cs
- Timeline.cs
- Material.cs
- PhysicalOps.cs
- DSACryptoServiceProvider.cs
- SystemTcpConnection.cs
- DateTimeOffset.cs
- WebUtil.cs
- GroupAggregateExpr.cs
- PropertyChangedEventArgs.cs
- ApplicationServiceManager.cs
- Pkcs7Recipient.cs
- WebBrowser.cs
- BinaryHeap.cs
- GridViewColumnHeaderAutomationPeer.cs
- FrameworkContentElement.cs
- XmlReaderSettings.cs
- SchemaCollectionPreprocessor.cs
- Attributes.cs
- HttpTransportSecurityElement.cs
- Number.cs
- FormsAuthenticationTicket.cs
- NameValueCollection.cs
- DataGridViewControlCollection.cs
- TransformerTypeCollection.cs
- SqlStatistics.cs
- Byte.cs
- PassportAuthenticationModule.cs
- FontStretches.cs
- ConcurrentQueue.cs
- NegatedCellConstant.cs
- BitStream.cs
- WebContentFormatHelper.cs
- XmlSchemaSearchPattern.cs
- LeafCellTreeNode.cs
- XmlSchemaSimpleContentRestriction.cs
- ByteAnimation.cs
- RangeValueProviderWrapper.cs
- EntityTransaction.cs
- SmiGettersStream.cs