Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 2-5-2004 [....] ([....]) // //----------------------------------------------------------------------- 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
- DataGridViewCellValueEventArgs.cs
- WebConfigurationHostFileChange.cs
- ComboBox.cs
- GlobalDataBindingHandler.cs
- SqlLiftWhereClauses.cs
- SqlBuffer.cs
- FixedTextSelectionProcessor.cs
- XmlCharacterData.cs
- StoragePropertyMapping.cs
- ArrangedElementCollection.cs
- NumberFunctions.cs
- ToolStripItemBehavior.cs
- PingReply.cs
- CompilerInfo.cs
- QuaternionConverter.cs
- NativeObjectSecurity.cs
- SharedConnectionInfo.cs
- UIElement3D.cs
- MatcherBuilder.cs
- SizeFConverter.cs
- IfAction.cs
- GPStream.cs
- COM2ComponentEditor.cs
- SemanticValue.cs
- AmbientLight.cs
- LookupBindingPropertiesAttribute.cs
- GeneralTransform3DCollection.cs
- RemoteAsymmetricSignatureFormatter.cs
- ExpressionBinding.cs
- PackWebRequestFactory.cs
- SynchronizationLockException.cs
- FutureFactory.cs
- TemplateLookupAction.cs
- EventLogPermissionAttribute.cs
- TextTreeRootNode.cs
- WebPartEditorApplyVerb.cs
- RangeValuePatternIdentifiers.cs
- MergablePropertyAttribute.cs
- DocumentXmlWriter.cs
- NameValuePair.cs
- ExpressionEditorAttribute.cs
- CTreeGenerator.cs
- TemplateKey.cs
- AttachedAnnotation.cs
- Selector.cs
- ExceptionHandler.cs
- XPathBinder.cs
- XslTransform.cs
- RuntimeConfigLKG.cs
- ValidatedControlConverter.cs
- UIPermission.cs
- PartitionedStream.cs
- AssociationSet.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ParentQuery.cs
- Model3DCollection.cs
- CellParaClient.cs
- LeafCellTreeNode.cs
- SettingsSection.cs
- DBConcurrencyException.cs
- ImageSourceConverter.cs
- OuterGlowBitmapEffect.cs
- ContentType.cs
- EntityConnectionStringBuilderItem.cs
- BindingExpressionUncommonField.cs
- UndoManager.cs
- WindowsRichEditRange.cs
- EditorBrowsableAttribute.cs
- HMACSHA256.cs
- BitmapScalingModeValidation.cs
- WinInetCache.cs
- SizeConverter.cs
- AppManager.cs
- PreloadedPackages.cs
- SoapMessage.cs
- SamlAuthorityBinding.cs
- Unit.cs
- WCFBuildProvider.cs
- DecimalAverageAggregationOperator.cs
- MenuRendererClassic.cs
- PageBreakRecord.cs
- COM2ExtendedUITypeEditor.cs
- SerializerWriterEventHandlers.cs
- System.Data_BID.cs
- XpsDocumentEvent.cs
- ISAPIWorkerRequest.cs
- DrawListViewColumnHeaderEventArgs.cs
- RequestQueue.cs
- DelegatingTypeDescriptionProvider.cs
- DynamicControlParameter.cs
- SoapSchemaMember.cs
- IncrementalCompileAnalyzer.cs
- XPathSingletonIterator.cs
- LineInfo.cs
- GlyphRun.cs
- DataObjectPastingEventArgs.cs
- EventPrivateKey.cs
- ProxyGenerationError.cs
- ImageSourceConverter.cs
- StorageEntityContainerMapping.cs