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
- SessionIDManager.cs
- CompModSwitches.cs
- LinkUtilities.cs
- Button.cs
- mansign.cs
- BindingExpression.cs
- SafeRegistryHandle.cs
- SiteMapNodeItem.cs
- _FtpControlStream.cs
- ImageMapEventArgs.cs
- ColumnWidthChangingEvent.cs
- ImageBrush.cs
- TypedAsyncResult.cs
- URLMembershipCondition.cs
- RunClient.cs
- TableAdapterManagerNameHandler.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- _NetRes.cs
- BinaryHeap.cs
- PrimitiveType.cs
- PolyQuadraticBezierSegment.cs
- AccessViolationException.cs
- COM2ExtendedTypeConverter.cs
- Figure.cs
- ExpressionBuilderContext.cs
- RuntimeConfig.cs
- ProofTokenCryptoHandle.cs
- BatchParser.cs
- Renderer.cs
- XmlDataSourceView.cs
- ListDictionary.cs
- ContextInformation.cs
- EncodingNLS.cs
- TemplateBuilder.cs
- DocumentSequenceHighlightLayer.cs
- FamilyCollection.cs
- ContentType.cs
- PropertyChangingEventArgs.cs
- BuildResultCache.cs
- BaseEntityWrapper.cs
- XmlNodeChangedEventArgs.cs
- ExpressionsCollectionConverter.cs
- CodeRegionDirective.cs
- MemberMaps.cs
- AutomationElementCollection.cs
- RSACryptoServiceProvider.cs
- XmlWrappingReader.cs
- SecurityException.cs
- ObjectDataSourceStatusEventArgs.cs
- ProcessModuleCollection.cs
- StringCollection.cs
- TreeNodeBinding.cs
- SHA256.cs
- GridViewRow.cs
- GeneralTransform.cs
- DocumentGridPage.cs
- HostingEnvironmentException.cs
- columnmapfactory.cs
- ForEach.cs
- CollectionExtensions.cs
- PassportAuthenticationModule.cs
- ContextMarshalException.cs
- StringReader.cs
- AmbiguousMatchException.cs
- PasswordBox.cs
- SHA1Managed.cs
- _HeaderInfoTable.cs
- ConfigurationLockCollection.cs
- TextSerializer.cs
- Converter.cs
- QueryPageSettingsEventArgs.cs
- KeyToListMap.cs
- RootBrowserWindowAutomationPeer.cs
- WindowsFormsHost.cs
- ListBox.cs
- PrincipalPermission.cs
- WebPartConnectionsConnectVerb.cs
- FileUpload.cs
- ArrayTypeMismatchException.cs
- PropertyOrder.cs
- XmlSortKeyAccumulator.cs
- StructuredTypeEmitter.cs
- FormViewPageEventArgs.cs
- LocalBuilder.cs
- StylusTouchDevice.cs
- ExtensionSimplifierMarkupObject.cs
- AddressingVersion.cs
- DateTimeConverter.cs
- ConfigXmlCDataSection.cs
- MbpInfo.cs
- AuthorizationPolicyTypeElement.cs
- ValueHandle.cs
- ProcessModelInfo.cs
- ValidationErrorCollection.cs
- ErrorFormatter.cs
- StyleBamlRecordReader.cs
- URLAttribute.cs
- EdgeModeValidation.cs
- DataDocumentXPathNavigator.cs
- DataColumnMappingCollection.cs