Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HtmlDocument.cs
- ServiceEndpoint.cs
- AssociatedControlConverter.cs
- SQLByte.cs
- baseaxisquery.cs
- CategoryNameCollection.cs
- DetailsViewUpdateEventArgs.cs
- ContentPresenter.cs
- SystemIcons.cs
- XmlIlGenerator.cs
- PreservationFileWriter.cs
- D3DImage.cs
- UpdatePanelTriggerCollection.cs
- GridViewColumnHeaderAutomationPeer.cs
- Module.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Drawing.cs
- CapabilitiesAssignment.cs
- DetailsViewModeEventArgs.cs
- VideoDrawing.cs
- SmtpNtlmAuthenticationModule.cs
- NameTable.cs
- RepeatInfo.cs
- DesignerLoader.cs
- XamlToRtfParser.cs
- EventMappingSettingsCollection.cs
- UriTemplateVariableQueryValue.cs
- DataBinder.cs
- VariantWrapper.cs
- UInt64.cs
- MembershipValidatePasswordEventArgs.cs
- precedingquery.cs
- FaultDescription.cs
- DesignBindingPropertyDescriptor.cs
- CompModSwitches.cs
- DataServiceRequestArgs.cs
- MailHeaderInfo.cs
- ParameterModifier.cs
- ExpressionNode.cs
- UnsafeNativeMethods.cs
- GenericsInstances.cs
- ExtensibleSyndicationObject.cs
- ColorComboBox.cs
- TdsParserSafeHandles.cs
- AsymmetricKeyExchangeDeformatter.cs
- Renderer.cs
- EnumValidator.cs
- ReaderWriterLock.cs
- HTMLTextWriter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ClientBuildManagerCallback.cs
- ResXBuildProvider.cs
- Site.cs
- WebScriptServiceHostFactory.cs
- XamlInt32CollectionSerializer.cs
- XhtmlConformanceSection.cs
- Region.cs
- ProfileServiceManager.cs
- propertyentry.cs
- SqlStream.cs
- SynchronizationLockException.cs
- DataGridViewDesigner.cs
- LogicalExpr.cs
- ListViewItemMouseHoverEvent.cs
- DataErrorValidationRule.cs
- DataServiceQuery.cs
- MethodCallTranslator.cs
- SizeIndependentAnimationStorage.cs
- XmlSchemaProviderAttribute.cs
- TraversalRequest.cs
- SafeCryptoKeyHandle.cs
- WebServicesSection.cs
- ValidationSummary.cs
- ValidationHelpers.cs
- CompiledRegexRunner.cs
- RequestCachingSection.cs
- TextTreeText.cs
- Visual.cs
- SmiTypedGetterSetter.cs
- HttpWriter.cs
- FocusTracker.cs
- ResourceReader.cs
- XPathBinder.cs
- SmiEventSink_DeferedProcessing.cs
- SqlStatistics.cs
- SendActivityDesignerTheme.cs
- WebPartConnectionsConnectVerb.cs
- StateItem.cs
- KnownTypes.cs
- WhereQueryOperator.cs
- CodeGeneratorOptions.cs
- InstanceLockLostException.cs
- OperationParameterInfoCollection.cs
- IApplicationTrustManager.cs
- LinqDataSource.cs
- UniformGrid.cs
- XPathMessageFilterElementCollection.cs
- RectAnimation.cs
- IPPacketInformation.cs
- InteropBitmapSource.cs