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
- FileLoadException.cs
- EUCJPEncoding.cs
- ExclusiveTcpTransportManager.cs
- VectorAnimation.cs
- FontNameEditor.cs
- DynamicQueryableWrapper.cs
- SequenceDesignerAccessibleObject.cs
- MethodImplAttribute.cs
- EntityDataSourceView.cs
- WsdlBuildProvider.cs
- DefaultValidator.cs
- RawStylusInputReport.cs
- DbConvert.cs
- EntityDataSourceColumn.cs
- AccessorTable.cs
- StringFormat.cs
- ColorKeyFrameCollection.cs
- _Win32.cs
- AnnotationHelper.cs
- Int64.cs
- Calendar.cs
- XPathChildIterator.cs
- CancelEventArgs.cs
- ErrorFormatterPage.cs
- FirstMatchCodeGroup.cs
- BitmapEffect.cs
- DocumentGridPage.cs
- RemotingService.cs
- objectquery_tresulttype.cs
- PartitionerStatic.cs
- GeometryGroup.cs
- IPPacketInformation.cs
- TrackingCondition.cs
- CacheAxisQuery.cs
- Grant.cs
- CommonDialog.cs
- RoleGroupCollection.cs
- Currency.cs
- FlatButtonAppearance.cs
- ConstructorNeedsTagAttribute.cs
- XmlAttributeOverrides.cs
- MSG.cs
- GorillaCodec.cs
- ObsoleteAttribute.cs
- XmlSchemaSimpleContent.cs
- RelationshipConverter.cs
- GACIdentityPermission.cs
- InstanceOwnerException.cs
- IImplicitResourceProvider.cs
- TextRangeBase.cs
- TextTreeUndoUnit.cs
- XmlBinaryReader.cs
- MD5.cs
- Point.cs
- ZipIOCentralDirectoryFileHeader.cs
- DataRecordInternal.cs
- SessionState.cs
- ProfileSettings.cs
- StringValidatorAttribute.cs
- WebPageTraceListener.cs
- SqlXml.cs
- EndEvent.cs
- SqlConnectionManager.cs
- StrokeRenderer.cs
- FormatSelectingMessageInspector.cs
- StronglyTypedResourceBuilder.cs
- XmlUtf8RawTextWriter.cs
- DataGridViewAdvancedBorderStyle.cs
- NativeMethods.cs
- DefaultPrintController.cs
- DataGridComponentEditor.cs
- BinaryFormatter.cs
- FormViewDeleteEventArgs.cs
- ModelFactory.cs
- NetPeerTcpBinding.cs
- ClaimSet.cs
- HttpRequest.cs
- ThreadStateException.cs
- WizardForm.cs
- PropertyMapper.cs
- Assert.cs
- IResourceProvider.cs
- DateTimeParse.cs
- SqlXmlStorage.cs
- XmlHelper.cs
- PriorityQueue.cs
- HttpCookiesSection.cs
- CreatingCookieEventArgs.cs
- ScrollContentPresenter.cs
- ListDictionaryInternal.cs
- UInt64.cs
- XmlSerializableReader.cs
- Ref.cs
- ObjectQueryExecutionPlan.cs
- Adorner.cs
- PagedDataSource.cs
- KeyMatchBuilder.cs
- SingleObjectCollection.cs
- RenderingBiasValidation.cs
- ThicknessAnimationBase.cs