Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / 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: 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
- DataBinder.cs
- XmlElementAttribute.cs
- DbConnectionHelper.cs
- RightsManagementPermission.cs
- SmtpException.cs
- PointCollectionValueSerializer.cs
- SoapExtensionReflector.cs
- ClickablePoint.cs
- XmlBoundElement.cs
- InputProcessorProfiles.cs
- XmlSchemaDatatype.cs
- OdbcCommandBuilder.cs
- xdrvalidator.cs
- CodeSubDirectoriesCollection.cs
- SqlGatherProducedAliases.cs
- ListViewDeleteEventArgs.cs
- HttpGetClientProtocol.cs
- InstalledVoice.cs
- BinaryObjectWriter.cs
- RadioButtonList.cs
- WorkflowApplicationAbortedException.cs
- LicenseException.cs
- ToolStripComboBox.cs
- DelegatedStream.cs
- DataServiceQueryProvider.cs
- NativeRecognizer.cs
- ConditionCollection.cs
- SharedStatics.cs
- RtType.cs
- SingleAnimationBase.cs
- XmlElementList.cs
- IResourceProvider.cs
- MethodExpression.cs
- Thickness.cs
- CompiledIdentityConstraint.cs
- ColorConverter.cs
- arc.cs
- RectIndependentAnimationStorage.cs
- ToolStripItemGlyph.cs
- ColorKeyFrameCollection.cs
- TypeListConverter.cs
- PeerCollaboration.cs
- TypeElement.cs
- ControlUtil.cs
- XmlNamespaceMapping.cs
- CodeSnippetStatement.cs
- MetadataUtilsSmi.cs
- XpsThumbnail.cs
- ServiceMemoryGates.cs
- returneventsaver.cs
- EndPoint.cs
- IPAddress.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Pool.cs
- WeakEventTable.cs
- StickyNoteContentControl.cs
- DefaultPrintController.cs
- RegularExpressionValidator.cs
- TypeDescriptionProviderAttribute.cs
- DataGridViewColumnHeaderCell.cs
- WorkflowTimerService.cs
- ColorAnimation.cs
- CodeBinaryOperatorExpression.cs
- CompareInfo.cs
- HostUtils.cs
- webclient.cs
- errorpatternmatcher.cs
- HostVisual.cs
- DataGridDesigner.cs
- BeginEvent.cs
- IUnknownConstantAttribute.cs
- FindCriteriaCD1.cs
- MergeExecutor.cs
- PropertyItemInternal.cs
- LambdaCompiler.Unary.cs
- FunctionDefinition.cs
- AmbientValueAttribute.cs
- TraceData.cs
- RefreshPropertiesAttribute.cs
- CommonObjectSecurity.cs
- CodeAccessPermission.cs
- GeneralTransform.cs
- LocalFileSettingsProvider.cs
- ForeignKeyFactory.cs
- ImageFormat.cs
- InsufficientMemoryException.cs
- BaseCAMarshaler.cs
- ApplicationServiceHelper.cs
- XmlSerializationReader.cs
- MembershipPasswordException.cs
- HTMLTagNameToTypeMapper.cs
- FragmentQueryKB.cs
- DependencyPropertyValueSerializer.cs
- PerformanceCounterCategory.cs
- RuntimeEnvironment.cs
- XmlSerializableServices.cs
- RTLAwareMessageBox.cs
- BrowsableAttribute.cs
- PeerNodeTraceRecord.cs
- MemberInitExpression.cs