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
- LogSwitch.cs
- QilValidationVisitor.cs
- TreeChangeInfo.cs
- Point3DCollection.cs
- HttpRuntimeSection.cs
- AnonymousIdentificationModule.cs
- RandomNumberGenerator.cs
- PerformanceCounterPermissionEntry.cs
- NameScopePropertyAttribute.cs
- GridPattern.cs
- TouchesCapturedWithinProperty.cs
- SqlTransaction.cs
- MetabaseServerConfig.cs
- RichTextBoxContextMenu.cs
- RequiredFieldValidator.cs
- JapaneseCalendar.cs
- ScriptServiceAttribute.cs
- HttpContext.cs
- SqlConnectionString.cs
- GeneralTransform3DCollection.cs
- PolyLineSegmentFigureLogic.cs
- ExpandoObject.cs
- NamedObjectList.cs
- CodeNamespaceCollection.cs
- SqlUtils.cs
- ConstNode.cs
- LongMinMaxAggregationOperator.cs
- ScopeCollection.cs
- coordinatorscratchpad.cs
- ExpressionBindings.cs
- WebPartTracker.cs
- PolicyLevel.cs
- ColumnMapProcessor.cs
- DataGridViewTextBoxColumn.cs
- DependencyPropertyKey.cs
- QilTernary.cs
- QueryAccessibilityHelpEvent.cs
- OLEDB_Util.cs
- EventWaitHandle.cs
- List.cs
- JsonReader.cs
- Privilege.cs
- WebFormsRootDesigner.cs
- BindingCollection.cs
- MdiWindowListItemConverter.cs
- MediaEntryAttribute.cs
- FlowDocumentReader.cs
- AnimationLayer.cs
- UTF7Encoding.cs
- CodeTryCatchFinallyStatement.cs
- XmlNodeReader.cs
- RecognitionEventArgs.cs
- FontDialog.cs
- AssemblyCache.cs
- ConstructorNeedsTagAttribute.cs
- WebPartCatalogCloseVerb.cs
- Win32MouseDevice.cs
- MergePropertyDescriptor.cs
- DataPagerField.cs
- ColorTransform.cs
- ToolStripSeparatorRenderEventArgs.cs
- SizeAnimation.cs
- NativeActivityContext.cs
- WindowsStreamSecurityElement.cs
- WindowsComboBox.cs
- TTSEvent.cs
- SiteMapNode.cs
- DataGridColumnCollection.cs
- SvcMapFileSerializer.cs
- ProfessionalColors.cs
- Dictionary.cs
- CharEntityEncoderFallback.cs
- WindowsToolbarItemAsMenuItem.cs
- ResourceDefaultValueAttribute.cs
- LocationUpdates.cs
- PartialArray.cs
- cookie.cs
- WebPartUtil.cs
- LinkClickEvent.cs
- RangeValidator.cs
- MarginsConverter.cs
- HttpListenerPrefixCollection.cs
- XmlExpressionDumper.cs
- StreamReader.cs
- ModifierKeysValueSerializer.cs
- ReachDocumentPageSerializerAsync.cs
- EntityTypeBase.cs
- EncodingTable.cs
- MonthCalendar.cs
- ObjectDataProvider.cs
- IteratorFilter.cs
- JsonFormatGeneratorStatics.cs
- DuplexChannelBinder.cs
- Compiler.cs
- TextRangeProviderWrapper.cs
- ScrollPattern.cs
- SizeChangedEventArgs.cs
- WaitHandleCannotBeOpenedException.cs
- SingleAnimationUsingKeyFrames.cs
- SingleObjectCollection.cs