Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StateBag.cs
- WSHttpBindingBase.cs
- RegularExpressionValidator.cs
- DeflateStreamAsyncResult.cs
- XPathScanner.cs
- WebSysDisplayNameAttribute.cs
- TokenBasedSetEnumerator.cs
- CodeTypeParameter.cs
- TreeWalkHelper.cs
- Speller.cs
- UriSection.cs
- MemoryMappedView.cs
- GenericTypeParameterBuilder.cs
- CodeMemberField.cs
- AdapterDictionary.cs
- DocumentCollection.cs
- TextPointerBase.cs
- BufferedGraphics.cs
- XmlElementAttribute.cs
- DispatcherTimer.cs
- XPathItem.cs
- SqlGatherConsumedAliases.cs
- ClientBuildManagerCallback.cs
- CalendarTable.cs
- SQlBooleanStorage.cs
- LightweightCodeGenerator.cs
- ValidatorCollection.cs
- EventLogRecord.cs
- WasHttpModulesInstallComponent.cs
- StateChangeEvent.cs
- DtdParser.cs
- EditCommandColumn.cs
- WindowsScrollBar.cs
- InvokeProviderWrapper.cs
- PassportPrincipal.cs
- ColorConvertedBitmap.cs
- ItemDragEvent.cs
- ByteRangeDownloader.cs
- TouchPoint.cs
- MessageSecurityOverHttp.cs
- compensatingcollection.cs
- ListViewItem.cs
- CodeGeneratorOptions.cs
- PreservationFileWriter.cs
- XmlDocumentSerializer.cs
- Model3DCollection.cs
- BitSet.cs
- DispatcherSynchronizationContext.cs
- DetailsViewUpdatedEventArgs.cs
- QEncodedStream.cs
- SqlDataAdapter.cs
- InertiaTranslationBehavior.cs
- EmptyTextWriter.cs
- Debug.cs
- WebConfigurationHost.cs
- TiffBitmapEncoder.cs
- InstanceKeyCompleteException.cs
- FontCacheUtil.cs
- StatementContext.cs
- EntityDataSourceChangingEventArgs.cs
- DataFormats.cs
- ReadOnlyAttribute.cs
- UrlUtility.cs
- X509ChainElement.cs
- LayoutTable.cs
- QilFunction.cs
- DataGrid.cs
- XmlNodeWriter.cs
- IntegerValidatorAttribute.cs
- PipeStream.cs
- BamlLocalizationDictionary.cs
- FileSystemInfo.cs
- ContentFileHelper.cs
- CalendarAutoFormatDialog.cs
- ReflectTypeDescriptionProvider.cs
- Label.cs
- SHA384.cs
- AnnotationComponentManager.cs
- DisplayNameAttribute.cs
- ArrangedElement.cs
- Soap12ProtocolImporter.cs
- PropertyFilterAttribute.cs
- EtwTrackingBehaviorElement.cs
- ProfilePropertySettings.cs
- ParserStack.cs
- EntityConnectionStringBuilder.cs
- SynchronizedInputAdaptor.cs
- AccessViolationException.cs
- ContentPlaceHolder.cs
- FontDialog.cs
- ConfigurationPropertyAttribute.cs
- ListBindableAttribute.cs
- SpeakCompletedEventArgs.cs
- UpdatableWrapper.cs
- AbsoluteQuery.cs
- SafeNativeMethodsOther.cs
- Membership.cs
- EmbossBitmapEffect.cs
- ScriptResourceDefinition.cs
- TraceHandlerErrorFormatter.cs