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
- OleDbConnection.cs
- X509RawDataKeyIdentifierClause.cs
- DataGridAddNewRow.cs
- _IPv6Address.cs
- WebPartDescription.cs
- SchemeSettingElementCollection.cs
- SettingsSection.cs
- Guid.cs
- TypeSystemProvider.cs
- WaitHandle.cs
- ExpressionHelper.cs
- ColorMap.cs
- Parallel.cs
- DataAccessor.cs
- XmlDataFileEditor.cs
- ArrowControl.xaml.cs
- NativeMethods.cs
- NotificationContext.cs
- Point3DCollectionValueSerializer.cs
- ItemsPresenter.cs
- CollectionViewGroupRoot.cs
- PropertyTabAttribute.cs
- UIElementParagraph.cs
- BinaryReader.cs
- sqlcontext.cs
- DiscriminatorMap.cs
- EditorPartChrome.cs
- XmlObjectSerializerWriteContextComplex.cs
- Constraint.cs
- ComponentDesigner.cs
- MultipartContentParser.cs
- CopyNamespacesAction.cs
- CodeArrayIndexerExpression.cs
- TextRangeAdaptor.cs
- WebPartConnectVerb.cs
- IdentityNotMappedException.cs
- ProfileGroupSettings.cs
- PerformanceCounterNameAttribute.cs
- BaseCollection.cs
- WindowsTab.cs
- SmiMetaDataProperty.cs
- Rect.cs
- WarningException.cs
- SHA1.cs
- ParamArrayAttribute.cs
- GradientSpreadMethodValidation.cs
- StrokeNodeOperations.cs
- SplitContainer.cs
- TimeSpanValidator.cs
- CriticalFinalizerObject.cs
- IISUnsafeMethods.cs
- SoapCodeExporter.cs
- PermissionRequestEvidence.cs
- SafeNativeMethods.cs
- TypedDataSourceCodeGenerator.cs
- ObjRef.cs
- DataPagerFieldCommandEventArgs.cs
- DataSourceCache.cs
- XmlNavigatorStack.cs
- TextTreeRootNode.cs
- SoapSchemaExporter.cs
- BigInt.cs
- MenuScrollingVisibilityConverter.cs
- AssemblyLoader.cs
- ContentPlaceHolderDesigner.cs
- ConstraintConverter.cs
- XamlStream.cs
- LocalServiceSecuritySettingsElement.cs
- NumericPagerField.cs
- RegionInfo.cs
- TextEffectCollection.cs
- FlowDocument.cs
- SqlWebEventProvider.cs
- XmlDocumentType.cs
- HtmlListAdapter.cs
- ILGenerator.cs
- InheritanceRules.cs
- ObjRef.cs
- Pts.cs
- NetNamedPipeSecurityMode.cs
- SiblingIterators.cs
- BrushValueSerializer.cs
- DependencyPropertyValueSerializer.cs
- HttpCapabilitiesBase.cs
- MonitorWrapper.cs
- FilterInvalidBodyAccessException.cs
- PropertyNames.cs
- ProxyGenerator.cs
- DbReferenceCollection.cs
- IHttpResponseInternal.cs
- ControlCachePolicy.cs
- DataSet.cs
- CngUIPolicy.cs
- PolyQuadraticBezierSegment.cs
- FrameDimension.cs
- CatalogUtil.cs
- ApplicationSecurityInfo.cs
- OperationContractAttribute.cs
- DelayedRegex.cs
- XmlSchemaAttribute.cs