Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextSpan.cs / 1305600 / 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
- ConfigXmlAttribute.cs
- LongValidatorAttribute.cs
- AliasGenerator.cs
- ObjectStateFormatter.cs
- VoiceSynthesis.cs
- RequiredFieldValidator.cs
- WhiteSpaceTrimStringConverter.cs
- DataSourceCollectionBase.cs
- webproxy.cs
- TextLineBreak.cs
- ListChangedEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- FontNamesConverter.cs
- IERequestCache.cs
- TabControlAutomationPeer.cs
- SchemaType.cs
- SQLCharsStorage.cs
- EdmEntityTypeAttribute.cs
- ErrorProvider.cs
- ColorTransformHelper.cs
- ZipIORawDataFileBlock.cs
- BindUriHelper.cs
- CustomPopupPlacement.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- BitmapEffectvisualstate.cs
- TreeNodeBindingDepthConverter.cs
- Debugger.cs
- DocumentXPathNavigator.cs
- SharedDp.cs
- Rect.cs
- XD.cs
- ModelItemImpl.cs
- ConnectionPoint.cs
- TextTreeNode.cs
- InfoCardProofToken.cs
- StatusBarItemAutomationPeer.cs
- MarkupExtensionParser.cs
- FlowLayout.cs
- Rijndael.cs
- WrapperSecurityCommunicationObject.cs
- ProfileService.cs
- StringUtil.cs
- DrawingDrawingContext.cs
- ServiceBuildProvider.cs
- TransformPattern.cs
- XmlSignatureProperties.cs
- peernodestatemanager.cs
- ToolStripContainer.cs
- FreezableDefaultValueFactory.cs
- WeakReferenceList.cs
- InternalPolicyElement.cs
- RadioButton.cs
- RubberbandSelector.cs
- HMACMD5.cs
- ScopelessEnumAttribute.cs
- DataSourceXmlSubItemAttribute.cs
- PeerApplicationLaunchInfo.cs
- DataGridViewElement.cs
- WindowsGraphics.cs
- ActivityXamlServices.cs
- InkSerializer.cs
- RelatedImageListAttribute.cs
- ServiceParser.cs
- TrackingStringDictionary.cs
- BasicCellRelation.cs
- GroupItemAutomationPeer.cs
- AutomationPattern.cs
- Renderer.cs
- hwndwrapper.cs
- httpstaticobjectscollection.cs
- ClientRolePrincipal.cs
- CodeTypeConstructor.cs
- Part.cs
- PolicyManager.cs
- ReferencedAssembly.cs
- SmtpDateTime.cs
- ClassHandlersStore.cs
- SystemIPGlobalProperties.cs
- RuntimeConfigurationRecord.cs
- LabelExpression.cs
- SerializationStore.cs
- OleDbSchemaGuid.cs
- ThemeDirectoryCompiler.cs
- DrawingContextWalker.cs
- CompositeCollectionView.cs
- InlineCollection.cs
- ConnectionPointCookie.cs
- ParserExtension.cs
- PropertyMapper.cs
- NumberFunctions.cs
- FormViewPageEventArgs.cs
- NotifyParentPropertyAttribute.cs
- RangeValueProviderWrapper.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Storyboard.cs
- CustomAttribute.cs
- DoubleUtil.cs
- StringFormat.cs
- SettingsProviderCollection.cs
- Attachment.cs