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
- InvokeWebService.cs
- DrawingCollection.cs
- dbdatarecord.cs
- HttpListenerResponse.cs
- LineMetrics.cs
- TitleStyle.cs
- EncryptedData.cs
- PropertyChangedEventManager.cs
- OrderByQueryOptionExpression.cs
- DataTemplateSelector.cs
- MessageSmuggler.cs
- BinHexEncoding.cs
- DataGridPagerStyle.cs
- Matrix.cs
- RadioButtonList.cs
- EdmItemCollection.cs
- DynamicILGenerator.cs
- DetailsView.cs
- EDesignUtil.cs
- UnsafeMethods.cs
- SqlEnums.cs
- EdmTypeAttribute.cs
- TdsParserSafeHandles.cs
- RecognizerStateChangedEventArgs.cs
- HandlerFactoryWrapper.cs
- ImageCodecInfo.cs
- MemberCollection.cs
- PolicyChain.cs
- TransactionTraceIdentifier.cs
- HyperLinkColumn.cs
- HttpHandlerActionCollection.cs
- SecurityState.cs
- SHA384.cs
- SqlCommand.cs
- TextStore.cs
- SID.cs
- UnsafeNativeMethods.cs
- RegexWorker.cs
- XmlKeywords.cs
- WorkflowServiceBuildProvider.cs
- ImpersonationContext.cs
- SqlServices.cs
- Header.cs
- SimpleHandlerBuildProvider.cs
- DoubleSumAggregationOperator.cs
- SmtpNtlmAuthenticationModule.cs
- RuntimeUtils.cs
- RotateTransform3D.cs
- WebPartCloseVerb.cs
- ListViewGroup.cs
- SqlMethodTransformer.cs
- MethodCallConverter.cs
- SafeEventLogReadHandle.cs
- TextControlDesigner.cs
- CacheVirtualItemsEvent.cs
- DictionarySectionHandler.cs
- SetterBase.cs
- SqlStream.cs
- CookieProtection.cs
- XamlValidatingReader.cs
- DataStreams.cs
- TextElementEnumerator.cs
- Permission.cs
- OuterProxyWrapper.cs
- CurrentTimeZone.cs
- TemplatePropertyEntry.cs
- UITypeEditor.cs
- InvokePatternIdentifiers.cs
- BehaviorService.cs
- TypeBuilder.cs
- ConnectivityStatus.cs
- FormatException.cs
- UserCancellationException.cs
- RotationValidation.cs
- StickyNote.cs
- SmiXetterAccessMap.cs
- ThreadStateException.cs
- DecimalStorage.cs
- XpsFilter.cs
- ProgressBarHighlightConverter.cs
- IntegerValidator.cs
- ContextMenu.cs
- MouseGestureConverter.cs
- DriveNotFoundException.cs
- Cloud.cs
- MaskInputRejectedEventArgs.cs
- DoubleLinkList.cs
- Context.cs
- ContentElementCollection.cs
- ApplicationActivator.cs
- SqlInternalConnectionTds.cs
- DataSourceXmlTextReader.cs
- MessageEncoderFactory.cs
- ApplicationException.cs
- EditorPartChrome.cs
- XmlWriter.cs
- ChtmlImageAdapter.cs
- AdornerDecorator.cs
- OptionalMessageQuery.cs
- LoadItemsEventArgs.cs