Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindingCollection.cs
- Property.cs
- ListChangedEventArgs.cs
- KeyValuePairs.cs
- RichTextBoxContextMenu.cs
- TitleStyle.cs
- WindowsTokenRoleProvider.cs
- XmlDataSourceNodeDescriptor.cs
- PriorityRange.cs
- HttpServerUtilityWrapper.cs
- ViewStateModeByIdAttribute.cs
- _NativeSSPI.cs
- DocumentPaginator.cs
- SuppressIldasmAttribute.cs
- TextEndOfSegment.cs
- SpellCheck.cs
- TextWriter.cs
- Cursor.cs
- unitconverter.cs
- Hex.cs
- NegotiationTokenAuthenticatorState.cs
- HashHelper.cs
- BinaryWriter.cs
- SByte.cs
- WebPartConnectVerb.cs
- GiveFeedbackEventArgs.cs
- XhtmlTextWriter.cs
- GenericPrincipal.cs
- InkCanvas.cs
- ToolBarPanel.cs
- AsyncResult.cs
- XPathPatternParser.cs
- SafeNativeMethods.cs
- Accessible.cs
- SchemaTableOptionalColumn.cs
- DataGridViewCheckBoxCell.cs
- WaitingCursor.cs
- CTreeGenerator.cs
- TraceHandler.cs
- DesignerRegionMouseEventArgs.cs
- FormViewDeletedEventArgs.cs
- smtppermission.cs
- ToolStripContentPanel.cs
- BrowserInteropHelper.cs
- FacetEnabledSchemaElement.cs
- StrongNameKeyPair.cs
- OdbcConnectionOpen.cs
- DocumentGrid.cs
- AppearanceEditorPart.cs
- CollectionBase.cs
- ProviderConnectionPointCollection.cs
- DataColumnMapping.cs
- ValueType.cs
- NumericUpDownAccelerationCollection.cs
- RegexInterpreter.cs
- BrowserCapabilitiesFactoryBase.cs
- StructuredTypeEmitter.cs
- InputChannel.cs
- WorkflowViewStateService.cs
- CodeSnippetExpression.cs
- ADRoleFactory.cs
- LinkArea.cs
- SrgsSemanticInterpretationTag.cs
- Constant.cs
- XmlAtomicValue.cs
- AsymmetricKeyExchangeFormatter.cs
- InvalidDataException.cs
- DataGridViewRowHeaderCell.cs
- WindowsFormsSectionHandler.cs
- RenameRuleObjectDialog.Designer.cs
- LinkArea.cs
- BitmapEffect.cs
- DEREncoding.cs
- SecurityTokenTypes.cs
- WebSysDescriptionAttribute.cs
- CharEnumerator.cs
- DBConnectionString.cs
- SqlClientWrapperSmiStreamChars.cs
- ClientTargetCollection.cs
- ClientScriptManager.cs
- SHA1Cng.cs
- CompoundFileStorageReference.cs
- DocumentSequenceHighlightLayer.cs
- Operator.cs
- FixedSchema.cs
- MulticastDelegate.cs
- NativeMethods.cs
- XmlDocumentSurrogate.cs
- _ConnectionGroup.cs
- DataGridViewCellParsingEventArgs.cs
- Menu.cs
- ActivityInstance.cs
- MaterialGroup.cs
- BindStream.cs
- AnnotationResource.cs
- QualificationDataAttribute.cs
- PersistNameAttribute.cs
- FormViewCommandEventArgs.cs
- DocumentsTrace.cs
- DataGridItem.cs