Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StringSource.cs
- COM2TypeInfoProcessor.cs
- SchemaNamespaceManager.cs
- SamlAuthorityBinding.cs
- NameScope.cs
- SerialReceived.cs
- Effect.cs
- Select.cs
- Button.cs
- SetStoryboardSpeedRatio.cs
- BitmapCache.cs
- FontNamesConverter.cs
- SecurityIdentifierElementCollection.cs
- AnonymousIdentificationSection.cs
- EncryptedKey.cs
- DbProviderFactoriesConfigurationHandler.cs
- NamespaceInfo.cs
- Literal.cs
- _SslSessionsCache.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SystemIPInterfaceProperties.cs
- COSERVERINFO.cs
- RangeBaseAutomationPeer.cs
- AuthenticationException.cs
- DetailsViewDeleteEventArgs.cs
- DataControlButton.cs
- SecurityKeyIdentifier.cs
- StickyNoteAnnotations.cs
- DictionaryManager.cs
- SwitchElementsCollection.cs
- RelationshipSet.cs
- DataViewListener.cs
- TemplateXamlTreeBuilder.cs
- SatelliteContractVersionAttribute.cs
- DataGridViewCellValueEventArgs.cs
- SQLRoleProvider.cs
- PipelineComponent.cs
- SystemFonts.cs
- WebPartActionVerb.cs
- PageSettings.cs
- UserNameSecurityTokenProvider.cs
- TextRangeBase.cs
- RequestDescription.cs
- Line.cs
- SqlMultiplexer.cs
- Span.cs
- CaseStatement.cs
- CodeComment.cs
- SHA384.cs
- RequestCachePolicy.cs
- AccessViolationException.cs
- SettingsPropertyCollection.cs
- DateTimeConverter2.cs
- BindingExpression.cs
- SessionPageStateSection.cs
- PropertyPathWorker.cs
- OwnerDrawPropertyBag.cs
- dbdatarecord.cs
- UpdatePanelTriggerCollection.cs
- RoleManagerSection.cs
- SkipStoryboardToFill.cs
- ObjectMemberMapping.cs
- UInt64Storage.cs
- AssemblyBuilder.cs
- MsdtcWrapper.cs
- SizeConverter.cs
- ClientTargetSection.cs
- DecimalConverter.cs
- ServiceCredentials.cs
- SafeWaitHandle.cs
- Shape.cs
- HelpInfo.cs
- OverloadGroupAttribute.cs
- NetTcpBindingCollectionElement.cs
- BodyGlyph.cs
- DataListItem.cs
- XmlnsCache.cs
- AtomPub10ServiceDocumentFormatter.cs
- CharConverter.cs
- ButtonAutomationPeer.cs
- SessionIDManager.cs
- ZoneButton.cs
- GridToolTip.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ContextDataSourceContextData.cs
- EntityDataSourceWizardForm.cs
- PlatformNotSupportedException.cs
- ButtonPopupAdapter.cs
- AppDomainCompilerProxy.cs
- Label.cs
- PropertyToken.cs
- RetrieveVirtualItemEventArgs.cs
- TablePattern.cs
- EntityTypeEmitter.cs
- DataTableReaderListener.cs
- ContainerVisual.cs
- EventlogProvider.cs
- WebServiceEnumData.cs
- WebPartDisplayMode.cs
- DoubleLinkList.cs