Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextSpan.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UserNameSecurityToken.cs
- DisplayMemberTemplateSelector.cs
- ClientEventManager.cs
- FactoryId.cs
- TextHidden.cs
- LocalBuilder.cs
- BrowserDefinition.cs
- FrameworkElement.cs
- ISAPIWorkerRequest.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TranslateTransform3D.cs
- QuaternionValueSerializer.cs
- Atom10FormatterFactory.cs
- DataSourceControl.cs
- MemberHolder.cs
- XmlSchemaCollection.cs
- PolyBezierSegment.cs
- ServiceErrorHandler.cs
- CorePropertiesFilter.cs
- TreeNodeCollectionEditorDialog.cs
- XhtmlTextWriter.cs
- EventMappingSettingsCollection.cs
- XPathSelfQuery.cs
- WorkflowApplicationAbortedException.cs
- ProcessThread.cs
- DecimalConverter.cs
- HttpApplication.cs
- StatusBar.cs
- DataListItem.cs
- BoundPropertyEntry.cs
- XmlImplementation.cs
- TextBox.cs
- DetailsViewInsertedEventArgs.cs
- StylusPointPropertyId.cs
- DataGridViewRowEventArgs.cs
- RoleManagerSection.cs
- XmlDocument.cs
- StrongNamePublicKeyBlob.cs
- ReadOnlyObservableCollection.cs
- IgnoreSection.cs
- SafeLocalMemHandle.cs
- DataGridViewColumnEventArgs.cs
- MailWriter.cs
- OptimizedTemplateContentHelper.cs
- XPathEmptyIterator.cs
- ClosableStream.cs
- SchemaImporterExtension.cs
- ProfileModule.cs
- ToolZoneDesigner.cs
- Regex.cs
- XmlNavigatorStack.cs
- XmlMembersMapping.cs
- CreateUserWizard.cs
- StylusOverProperty.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ApplicationContext.cs
- FileLevelControlBuilderAttribute.cs
- LinearQuaternionKeyFrame.cs
- IndexedGlyphRun.cs
- IriParsingElement.cs
- EditingCommands.cs
- AsymmetricAlgorithm.cs
- IndependentAnimationStorage.cs
- HuffCodec.cs
- DurableInstanceManager.cs
- ParsedAttributeCollection.cs
- UrlAuthFailedErrorFormatter.cs
- AuthenticationModuleElement.cs
- KnownBoxes.cs
- HttpApplication.cs
- PointAnimation.cs
- Span.cs
- ToolstripProfessionalRenderer.cs
- Geometry.cs
- WizardStepBase.cs
- QuaternionAnimation.cs
- ConvertTextFrag.cs
- SerializationSectionGroup.cs
- UnsafeNativeMethods.cs
- WindowsFormsLinkLabel.cs
- ScriptHandlerFactory.cs
- ImpersonationContext.cs
- DigitalSignatureProvider.cs
- ResolvedKeyFrameEntry.cs
- Qualifier.cs
- ConsumerConnectionPoint.cs
- FamilyMapCollection.cs
- IChannel.cs
- Wizard.cs
- XDeferredAxisSource.cs
- PathData.cs
- HtmlTable.cs
- XmlReader.cs
- DataGridViewTextBoxColumn.cs
- InvokeMethodDesigner.xaml.cs
- QueryParameter.cs
- PrtTicket_Public.cs
- Image.cs
- ProxyElement.cs
- TimeZoneNotFoundException.cs