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
- CroppedBitmap.cs
- TableRow.cs
- ViewStateException.cs
- AppDomainFactory.cs
- SystemIcmpV6Statistics.cs
- OletxTransactionManager.cs
- HostedElements.cs
- HttpPostClientProtocol.cs
- RuntimeArgumentHandle.cs
- SerializationHelper.cs
- FloaterParagraph.cs
- XpsViewerException.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- GenericTypeParameterBuilder.cs
- ManipulationDelta.cs
- SerialStream.cs
- CollectionChangeEventArgs.cs
- HandleRef.cs
- GridViewHeaderRowPresenter.cs
- ClientData.cs
- TextBox.cs
- ObjectMemberMapping.cs
- XsltLoader.cs
- NavigationHelper.cs
- TypeConverterHelper.cs
- ResXResourceSet.cs
- BulletedListEventArgs.cs
- TreeView.cs
- CacheSection.cs
- FrameworkElementAutomationPeer.cs
- InputProviderSite.cs
- DnsPermission.cs
- MatrixUtil.cs
- ServiceDeploymentInfo.cs
- StatusBarPanel.cs
- TileModeValidation.cs
- Function.cs
- Reference.cs
- VisualTreeUtils.cs
- ColumnMapProcessor.cs
- CustomGrammar.cs
- HashMembershipCondition.cs
- XmlAnyElementAttribute.cs
- PropertyBuilder.cs
- OdbcFactory.cs
- ExceptionAggregator.cs
- WebPartDescription.cs
- HyperLinkStyle.cs
- unsafenativemethodstextservices.cs
- HttpWebResponse.cs
- MultipartContentParser.cs
- ProcessThreadCollection.cs
- LocalFileSettingsProvider.cs
- TemplateControl.cs
- WpfKnownType.cs
- MbpInfo.cs
- UIntPtr.cs
- BamlResourceDeserializer.cs
- ChannelBinding.cs
- ConstructorNeedsTagAttribute.cs
- FixedStringLookup.cs
- TcpChannelHelper.cs
- XmlSchema.cs
- TrustLevel.cs
- CalendarKeyboardHelper.cs
- VersionedStreamOwner.cs
- Command.cs
- HttpClientProtocol.cs
- PropertyGeneratedEventArgs.cs
- EncoderNLS.cs
- RichTextBox.cs
- ObjectQuery.cs
- ClientOptions.cs
- BooleanFacetDescriptionElement.cs
- TransportBindingElementImporter.cs
- XmlSerializationGeneratedCode.cs
- IListConverters.cs
- HtmlTableCell.cs
- Size.cs
- DesignerEditorPartChrome.cs
- ListBox.cs
- DiagnosticStrings.cs
- Expander.cs
- QueryFunctions.cs
- ImageListUtils.cs
- DataService.cs
- NativeMethods.cs
- CompModHelpers.cs
- KeyedHashAlgorithm.cs
- AutomationPattern.cs
- ChildrenQuery.cs
- ClientSponsor.cs
- ContextInformation.cs
- GeometryHitTestResult.cs
- Directory.cs
- DictionaryEntry.cs
- XmlException.cs
- ForeignKeyConstraint.cs
- ObjectDataSourceStatusEventArgs.cs
- RtfToken.cs