Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BinaryObjectWriter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- _FixedSizeReader.cs
- SystemNetworkInterface.cs
- DictionaryEntry.cs
- PolicyManager.cs
- SimplePropertyEntry.cs
- FilteredAttributeCollection.cs
- LocalizedNameDescriptionPair.cs
- PageEventArgs.cs
- ListSortDescription.cs
- SqlDataSourceStatusEventArgs.cs
- TextMetrics.cs
- Rotation3DAnimation.cs
- PreparingEnlistment.cs
- BitmapSizeOptions.cs
- CalendarDesigner.cs
- Stylesheet.cs
- ContractMapping.cs
- WebPartVerb.cs
- InternalBufferOverflowException.cs
- QilReplaceVisitor.cs
- DataBinding.cs
- DaylightTime.cs
- InstanceDataCollection.cs
- _NegoStream.cs
- EmptyEnumerable.cs
- TextShapeableCharacters.cs
- ManagementException.cs
- ValidateNames.cs
- SingleAnimation.cs
- NeedSkipTokenVisitor.cs
- UnsafeNativeMethods.cs
- ComplexObject.cs
- MetadataImporter.cs
- SpeechEvent.cs
- StyleXamlTreeBuilder.cs
- WebPartDisplayModeCollection.cs
- DefaultCompensation.cs
- RequestQueue.cs
- ReachObjectContext.cs
- HMACSHA512.cs
- NameValueCollection.cs
- ObjectItemNoOpAssemblyLoader.cs
- TreeNodeBinding.cs
- GeneralTransform3DTo2D.cs
- DataControlFieldsEditor.cs
- CryptographicAttribute.cs
- DynamicDocumentPaginator.cs
- ListDictionary.cs
- OutputCache.cs
- WorkflowEnvironment.cs
- ListViewSelectEventArgs.cs
- WindowsNonControl.cs
- DataGridViewToolTip.cs
- ConfigurationLockCollection.cs
- Automation.cs
- EmptyStringExpandableObjectConverter.cs
- PictureBox.cs
- ScopelessEnumAttribute.cs
- DefaultAsyncDataDispatcher.cs
- InvalidProgramException.cs
- DragEvent.cs
- XmlSchemaComplexType.cs
- SymbolMethod.cs
- ArrangedElementCollection.cs
- ListControlStringCollectionEditor.cs
- SystemWebExtensionsSectionGroup.cs
- Command.cs
- GridViewUpdateEventArgs.cs
- State.cs
- SqlUdtInfo.cs
- SQLGuidStorage.cs
- DataGridRowAutomationPeer.cs
- WinEventHandler.cs
- PointAnimation.cs
- XmlAggregates.cs
- CultureData.cs
- DefaultTraceListener.cs
- Scalars.cs
- OptimisticConcurrencyException.cs
- TrackingCondition.cs
- LockRecursionException.cs
- TextAnchor.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- UIElementParagraph.cs
- PropertyReferenceExtension.cs
- ReflectEventDescriptor.cs
- TemplateBindingExtension.cs
- SecurityRuntime.cs
- InfoCardTraceRecord.cs
- CompilerState.cs
- METAHEADER.cs
- ClientScriptManager.cs
- SqlDataSourceAdvancedOptionsForm.cs
- StreamReader.cs
- Console.cs
- PopupRootAutomationPeer.cs
- SoapReflectionImporter.cs
- RowSpanVector.cs