Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------ // // 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
- CRYPTPROTECT_PROMPTSTRUCT.cs
- WindowsListView.cs
- HostedElements.cs
- InvalidComObjectException.cs
- CursorConverter.cs
- ConfigurationElementCollection.cs
- GifBitmapEncoder.cs
- Number.cs
- ListDataHelper.cs
- MetafileHeader.cs
- EUCJPEncoding.cs
- TransformPattern.cs
- SqlProviderUtilities.cs
- HttpApplicationFactory.cs
- ViewCellRelation.cs
- RemotingServices.cs
- SqlNotificationEventArgs.cs
- RegisteredScript.cs
- DataObjectCopyingEventArgs.cs
- InsufficientExecutionStackException.cs
- TextEditorCopyPaste.cs
- HandlerFactoryCache.cs
- SelectionService.cs
- DataTemplateSelector.cs
- ToolStripDropDownButton.cs
- SqlBooleanizer.cs
- SettingsAttributes.cs
- ListComponentEditor.cs
- followingsibling.cs
- PointKeyFrameCollection.cs
- DecimalStorage.cs
- DocumentReference.cs
- AttachInfo.cs
- StyleTypedPropertyAttribute.cs
- UidManager.cs
- dbenumerator.cs
- RecordBuilder.cs
- WinEventTracker.cs
- SchemaSetCompiler.cs
- StateValidator.cs
- BeginEvent.cs
- _AutoWebProxyScriptHelper.cs
- DbParameterCollectionHelper.cs
- URL.cs
- MethodBuilderInstantiation.cs
- ServiceOperation.cs
- CustomErrorsSection.cs
- SQLGuidStorage.cs
- KeyBinding.cs
- validationstate.cs
- XmlBindingWorker.cs
- HyperLinkField.cs
- HMACRIPEMD160.cs
- PagerSettings.cs
- Vector3DKeyFrameCollection.cs
- EventLog.cs
- Symbol.cs
- MenuEventArgs.cs
- PeerName.cs
- DelegateInArgument.cs
- AssemblyInfo.cs
- HtmlDocument.cs
- EntityConnectionStringBuilderItem.cs
- DataListItemEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- Encoding.cs
- FixedDocument.cs
- AxDesigner.cs
- ProviderConnectionPoint.cs
- Operator.cs
- configsystem.cs
- ChannelProtectionRequirements.cs
- BulletedList.cs
- MailBnfHelper.cs
- TypedTableBase.cs
- RemotingClientProxy.cs
- ExtendedProtectionPolicy.cs
- _NTAuthentication.cs
- EditableTreeList.cs
- DoubleLinkListEnumerator.cs
- IdnMapping.cs
- Binding.cs
- InternalConfigRoot.cs
- TraceSource.cs
- Cursor.cs
- KeyValueConfigurationCollection.cs
- LinkConverter.cs
- UnsafeNativeMethods.cs
- AssemblyInfo.cs
- UrlMappingCollection.cs
- SendKeys.cs
- _ServiceNameStore.cs
- OrderPreservingSpoolingTask.cs
- ToolStripLabel.cs
- TextEditorSpelling.cs
- ObjectDataSourceFilteringEventArgs.cs
- GeneratedContractType.cs
- FormsIdentity.cs
- HelpKeywordAttribute.cs
- DataControlCommands.cs