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
- CapabilitiesAssignment.cs
- ExtendedProperty.cs
- OletxVolatileEnlistment.cs
- HttpPostedFile.cs
- EastAsianLunisolarCalendar.cs
- DependencyPropertyDescriptor.cs
- CheckBoxField.cs
- FontCollection.cs
- DbParameterCollection.cs
- PropertyManager.cs
- Delegate.cs
- GestureRecognitionResult.cs
- InvalidOleVariantTypeException.cs
- BamlResourceSerializer.cs
- SingleObjectCollection.cs
- FileClassifier.cs
- GridViewCancelEditEventArgs.cs
- ReceiveContextCollection.cs
- BooleanKeyFrameCollection.cs
- DialogDivider.cs
- WriteTimeStream.cs
- ColumnWidthChangedEvent.cs
- ConfigXmlComment.cs
- PropertyAccessVisitor.cs
- LongPath.cs
- FormsAuthenticationUserCollection.cs
- HostedTcpTransportManager.cs
- DataGridViewSelectedRowCollection.cs
- LoginDesigner.cs
- WindowsPen.cs
- DesignerTransactionCloseEvent.cs
- PriorityChain.cs
- MessageAction.cs
- ServicePointManager.cs
- DefaultProxySection.cs
- ParseChildrenAsPropertiesAttribute.cs
- SqlException.cs
- XmlWellformedWriter.cs
- WebPageTraceListener.cs
- DesignerVerb.cs
- securitycriticaldata.cs
- FastEncoderWindow.cs
- HttpPostLocalhostServerProtocol.cs
- SoapFault.cs
- WebPartDisplayModeCancelEventArgs.cs
- GeometryDrawing.cs
- CodeCatchClauseCollection.cs
- PointAnimationClockResource.cs
- XsltArgumentList.cs
- HtmlAnchor.cs
- WebPartHeaderCloseVerb.cs
- SafeHandles.cs
- SafeSystemMetrics.cs
- EllipticalNodeOperations.cs
- SchemaType.cs
- ServiceOperationListItem.cs
- StateFinalizationDesigner.cs
- ClientEventManager.cs
- Main.cs
- ProvideValueServiceProvider.cs
- DivideByZeroException.cs
- ByteStack.cs
- QilInvokeLateBound.cs
- MatrixStack.cs
- DataObjectPastingEventArgs.cs
- ToolboxItemCollection.cs
- Error.cs
- PassportIdentity.cs
- HelpInfo.cs
- GridViewRowPresenter.cs
- ContractsBCL.cs
- _Win32.cs
- ResourcePart.cs
- TopClause.cs
- SafeLocalMemHandle.cs
- SHA1Managed.cs
- WindowsSecurityToken.cs
- Size3DConverter.cs
- Parser.cs
- RouteTable.cs
- CustomCredentialPolicy.cs
- WebPartAddingEventArgs.cs
- RoutedEventHandlerInfo.cs
- PackWebResponse.cs
- IPAddress.cs
- CriticalFinalizerObject.cs
- HitTestParameters3D.cs
- ProtocolsSection.cs
- NamedObject.cs
- BitmapEffectDrawing.cs
- ChtmlTextBoxAdapter.cs
- AddValidationError.cs
- ObjectAssociationEndMapping.cs
- Certificate.cs
- FormParameter.cs
- BrowserCapabilitiesFactory.cs
- ErrorRuntimeConfig.cs
- WebPartCollection.cs
- Translator.cs
- BitmapEffectDrawing.cs