Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 2-5-2004 [....] ([....]) // //----------------------------------------------------------------------- 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
- UIElementAutomationPeer.cs
- PixelFormat.cs
- DocumentXmlWriter.cs
- RuntimeHandles.cs
- Exceptions.cs
- TemplatePropertyEntry.cs
- WebMessageBodyStyleHelper.cs
- DataGridState.cs
- JsonQueryStringConverter.cs
- DBDataPermissionAttribute.cs
- ReachDocumentSequenceSerializer.cs
- SerializationEventsCache.cs
- ObjectStateEntryDbDataRecord.cs
- Ops.cs
- CursorInteropHelper.cs
- MexBindingBindingCollectionElement.cs
- DataServiceQueryContinuation.cs
- GridViewRowPresenter.cs
- EntityDataSourceContextCreatedEventArgs.cs
- MaskInputRejectedEventArgs.cs
- ErrorWebPart.cs
- ProcessHostServerConfig.cs
- OledbConnectionStringbuilder.cs
- IpcClientChannel.cs
- PageCache.cs
- InstanceDescriptor.cs
- ProcessHostMapPath.cs
- ValidationVisibilityAttribute.cs
- DebugView.cs
- CommonObjectSecurity.cs
- SqlClientFactory.cs
- InOutArgumentConverter.cs
- loginstatus.cs
- MetaChildrenColumn.cs
- DataGridViewCellStyleConverter.cs
- WCFServiceClientProxyGenerator.cs
- EntityDataSourceChangingEventArgs.cs
- IPPacketInformation.cs
- ContainerControl.cs
- StatusBarItemAutomationPeer.cs
- XmlStreamStore.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- GridViewCancelEditEventArgs.cs
- SimpleParser.cs
- HelloOperationCD1AsyncResult.cs
- CodeTypeMember.cs
- CookieParameter.cs
- DeobfuscatingStream.cs
- PipeSecurity.cs
- BasePropertyDescriptor.cs
- ListViewItem.cs
- CharacterHit.cs
- InstanceLockTracking.cs
- Adorner.cs
- TreeNodeEventArgs.cs
- UIElement3DAutomationPeer.cs
- TickBar.cs
- PropertyGridCommands.cs
- PhysicalAddress.cs
- DeferredTextReference.cs
- FactoryId.cs
- TableLayoutStyle.cs
- CacheOutputQuery.cs
- XmlSchemaAnnotation.cs
- HtmlMobileTextWriter.cs
- Pkcs7Signer.cs
- EntityTemplateFactory.cs
- Profiler.cs
- EntityContainerEmitter.cs
- PropertyPathConverter.cs
- Highlights.cs
- ReflectEventDescriptor.cs
- ErrorHandler.cs
- XmlValidatingReader.cs
- Model3DGroup.cs
- PrePrepareMethodAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- DbMetaDataCollectionNames.cs
- MultiView.cs
- FormsAuthenticationCredentials.cs
- DataObjectCopyingEventArgs.cs
- Dispatcher.cs
- HtmlSelect.cs
- pingexception.cs
- storepermission.cs
- ConfigXmlSignificantWhitespace.cs
- SqlDataSourceConfigureFilterForm.cs
- UndoEngine.cs
- ProxyHelper.cs
- ProxyElement.cs
- PageAsyncTaskManager.cs
- PreviewPrintController.cs
- SoapIgnoreAttribute.cs
- DbConvert.cs
- _UriSyntax.cs
- XmlSchemaComplexContent.cs
- HtmlInputSubmit.cs
- NamedPipeTransportManager.cs
- ExtendedTransformFactory.cs