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
- BaseCAMarshaler.cs
- MetadataUtil.cs
- Descriptor.cs
- StringInfo.cs
- PrinterUnitConvert.cs
- SupportsEventValidationAttribute.cs
- HtmlInputReset.cs
- ConfigurationLockCollection.cs
- SynchronizationLockException.cs
- XamlUtilities.cs
- CellNormalizer.cs
- SendSecurityHeaderElement.cs
- RequiredFieldValidator.cs
- StrongNamePublicKeyBlob.cs
- EntityDesignerUtils.cs
- ShapingEngine.cs
- ThicknessAnimationUsingKeyFrames.cs
- LabelAutomationPeer.cs
- ToolBarOverflowPanel.cs
- XNodeNavigator.cs
- EventBuilder.cs
- SplitContainer.cs
- StylusButtonCollection.cs
- FormatConvertedBitmap.cs
- DependencyObjectProvider.cs
- PnrpPeerResolverElement.cs
- DataGridViewColumnCollection.cs
- HasCopySemanticsAttribute.cs
- Converter.cs
- PartManifestEntry.cs
- RegisteredArrayDeclaration.cs
- FixedPage.cs
- OracleDataReader.cs
- PackWebRequest.cs
- SelectionRangeConverter.cs
- BindMarkupExtensionSerializer.cs
- PaperSource.cs
- SwitchAttribute.cs
- OdbcCommandBuilder.cs
- FacetEnabledSchemaElement.cs
- KeyToListMap.cs
- CodeExpressionStatement.cs
- OutputScopeManager.cs
- Rfc2898DeriveBytes.cs
- ListViewSortEventArgs.cs
- InternalMappingException.cs
- BatchParser.cs
- ComplexPropertyEntry.cs
- XmlSchemaObjectCollection.cs
- HostProtectionException.cs
- MinimizableAttributeTypeConverter.cs
- TextRunCacheImp.cs
- ConfigXmlWhitespace.cs
- BindableTemplateBuilder.cs
- SafeNativeMethods.cs
- WebPartMenu.cs
- GridViewSortEventArgs.cs
- GreenMethods.cs
- CorrelationTokenTypeConvertor.cs
- NullableBoolConverter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- CachedFontFamily.cs
- AssemblyBuilder.cs
- GeometryGroup.cs
- OracleConnectionStringBuilder.cs
- KeyedCollection.cs
- MiniCustomAttributeInfo.cs
- CodeArrayIndexerExpression.cs
- DescendantBaseQuery.cs
- RuleDefinitions.cs
- CallbackHandler.cs
- RSAOAEPKeyExchangeFormatter.cs
- RadialGradientBrush.cs
- SingleStorage.cs
- CmsInterop.cs
- SourceItem.cs
- CriticalFinalizerObject.cs
- MobileControlPersister.cs
- Vector3DAnimationBase.cs
- FontNamesConverter.cs
- ListBoxAutomationPeer.cs
- _Events.cs
- EventEntry.cs
- CodeExpressionCollection.cs
- DataMemberAttribute.cs
- XmlSchemaAttributeGroup.cs
- Point3D.cs
- CurrentChangedEventManager.cs
- SerializationInfoEnumerator.cs
- BufferBuilder.cs
- COM2Enum.cs
- MissingFieldException.cs
- ActivityScheduledQuery.cs
- DataSourceBooleanViewSchemaConverter.cs
- HitTestDrawingContextWalker.cs
- XmlILOptimizerVisitor.cs
- NetworkStream.cs
- WinEventQueueItem.cs
- AnimationStorage.cs
- FileVersion.cs