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
- URLBuilder.cs
- TextBoxBase.cs
- ScriptRegistrationManager.cs
- RichTextBox.cs
- AppDomain.cs
- FrugalMap.cs
- Classification.cs
- StorageAssociationSetMapping.cs
- StringUtil.cs
- IndependentAnimationStorage.cs
- UInt32.cs
- TextFindEngine.cs
- TextReader.cs
- PageRequestManager.cs
- SystemDropShadowChrome.cs
- SqlUtils.cs
- TemplateParser.cs
- DetailsViewInsertedEventArgs.cs
- EtwTrace.cs
- HeaderedItemsControl.cs
- FileStream.cs
- ObjectSet.cs
- Size.cs
- ControlIdConverter.cs
- BooleanConverter.cs
- FileClassifier.cs
- ImageCodecInfo.cs
- Normalization.cs
- IisTraceListener.cs
- GridProviderWrapper.cs
- SortKey.cs
- XmlComment.cs
- SQLDecimal.cs
- BrushConverter.cs
- InsufficientExecutionStackException.cs
- PersonalizableAttribute.cs
- cookieexception.cs
- BasicExpandProvider.cs
- EventListener.cs
- SpellerHighlightLayer.cs
- SiteOfOriginPart.cs
- SchemaImporterExtensionElementCollection.cs
- PageAction.cs
- ClientScriptManager.cs
- autovalidator.cs
- FreezableOperations.cs
- EncodingTable.cs
- DataRecordInternal.cs
- XsltQilFactory.cs
- DynamicPropertyHolder.cs
- EdgeProfileValidation.cs
- XmlDataLoader.cs
- CodeTypeConstructor.cs
- RemotingConfiguration.cs
- GeometryHitTestParameters.cs
- CalendarAutoFormatDialog.cs
- CachingParameterInspector.cs
- Stroke2.cs
- SourceItem.cs
- HttpProcessUtility.cs
- XmlParserContext.cs
- QueryResult.cs
- HttpCapabilitiesBase.cs
- SqlConnectionStringBuilder.cs
- GeneralTransform3DGroup.cs
- CommandHelper.cs
- DynamicValidatorEventArgs.cs
- LocalizableResourceBuilder.cs
- OdbcErrorCollection.cs
- StyleXamlParser.cs
- XmlSignatureProperties.cs
- ExpressionEditorAttribute.cs
- ApplyTemplatesAction.cs
- Help.cs
- ControlUtil.cs
- PageContentAsyncResult.cs
- RoutedEventConverter.cs
- DataTemplate.cs
- JournalEntryStack.cs
- PropertyGridEditorPart.cs
- EventLogQuery.cs
- EncryptedPackageFilter.cs
- VersionConverter.cs
- AsyncCodeActivityContext.cs
- RootBrowserWindow.cs
- CompositionTarget.cs
- CultureInfoConverter.cs
- CursorConverter.cs
- XmlAtomicValue.cs
- PagerSettings.cs
- CodeRemoveEventStatement.cs
- QueryTask.cs
- CompilerState.cs
- TriState.cs
- EventHandlerService.cs
- StackOverflowException.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DbgCompiler.cs
- ToolStripTemplateNode.cs
- WindowPattern.cs