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
- DesignerView.Commands.cs
- ValidationRuleCollection.cs
- ExpressionServices.cs
- IriParsingElement.cs
- AvTrace.cs
- SmtpMail.cs
- VisualTarget.cs
- DynamicILGenerator.cs
- Part.cs
- DataBindingValueUIHandler.cs
- XmlQueryCardinality.cs
- HorizontalAlignConverter.cs
- Size.cs
- WebPartDisplayMode.cs
- ConfigurationSectionGroupCollection.cs
- BamlMapTable.cs
- ToolboxItemAttribute.cs
- TableRow.cs
- QilExpression.cs
- NullableLongAverageAggregationOperator.cs
- XmlQualifiedName.cs
- DrawingCollection.cs
- PersonalizablePropertyEntry.cs
- EarlyBoundInfo.cs
- FileAccessException.cs
- GeneralTransform.cs
- CheckBoxPopupAdapter.cs
- Version.cs
- DBProviderConfigurationHandler.cs
- EntityModelBuildProvider.cs
- EmbeddedMailObjectsCollection.cs
- SiblingIterators.cs
- ScrollChangedEventArgs.cs
- ToolStripRenderEventArgs.cs
- SQLBinary.cs
- _PooledStream.cs
- KnownColorTable.cs
- HttpServerVarsCollection.cs
- ManipulationDelta.cs
- RemoteWebConfigurationHostServer.cs
- UnicodeEncoding.cs
- CodeParameterDeclarationExpression.cs
- PackageDigitalSignatureManager.cs
- PropertyChangedEventArgs.cs
- NumericExpr.cs
- NominalTypeEliminator.cs
- FixedStringLookup.cs
- X509SubjectKeyIdentifierClause.cs
- CultureInfo.cs
- TextServicesManager.cs
- RadioButtonBaseAdapter.cs
- UnsafeNativeMethodsTablet.cs
- ObfuscationAttribute.cs
- WebBrowserNavigatingEventHandler.cs
- SurrogateEncoder.cs
- ManagementObjectCollection.cs
- RoutedEvent.cs
- JsonFormatGeneratorStatics.cs
- DataViewManagerListItemTypeDescriptor.cs
- ObjectListCommandsPage.cs
- Variant.cs
- UnsafeNativeMethods.cs
- FormViewUpdateEventArgs.cs
- FileDetails.cs
- HyperlinkAutomationPeer.cs
- PrimaryKeyTypeConverter.cs
- DefaultPropertyAttribute.cs
- SubMenuStyle.cs
- KoreanCalendar.cs
- ProviderConnectionPoint.cs
- BamlResourceDeserializer.cs
- SQLInt32Storage.cs
- GiveFeedbackEventArgs.cs
- TabletDevice.cs
- ComPlusTypeLoader.cs
- Rule.cs
- PathTooLongException.cs
- WebPartVerbsEventArgs.cs
- UIElement3D.cs
- DataGridColumnCollection.cs
- DataTableMappingCollection.cs
- DynamicVirtualDiscoSearcher.cs
- OperandQuery.cs
- AppSecurityManager.cs
- ContainerParagraph.cs
- CodeTypeReferenceExpression.cs
- SByte.cs
- DbgCompiler.cs
- AppModelKnownContentFactory.cs
- ShaperBuffers.cs
- CommandID.cs
- IsolatedStorageFile.cs
- RowUpdatingEventArgs.cs
- EnumType.cs
- SupportsEventValidationAttribute.cs
- ChangeInterceptorAttribute.cs
- ObjectViewListener.cs
- SqlResolver.cs
- DataRecordInternal.cs
- BooleanFunctions.cs