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
- EnumerableCollectionView.cs
- XmlSchemaFacet.cs
- SmtpTransport.cs
- SQLBytes.cs
- _TransmitFileOverlappedAsyncResult.cs
- TextEvent.cs
- GPRECTF.cs
- DBDataPermissionAttribute.cs
- IndentTextWriter.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- QueryHandler.cs
- BaseAsyncResult.cs
- IntellisenseTextBox.designer.cs
- UIElement3DAutomationPeer.cs
- GiveFeedbackEventArgs.cs
- StrokeDescriptor.cs
- ReadOnlyPropertyMetadata.cs
- AppModelKnownContentFactory.cs
- HasCopySemanticsAttribute.cs
- DataColumnPropertyDescriptor.cs
- InternalControlCollection.cs
- PrePostDescendentsWalker.cs
- ExpressionPrefixAttribute.cs
- Paragraph.cs
- GridSplitter.cs
- KeyEvent.cs
- KeyInterop.cs
- TextTreeNode.cs
- DataServiceQueryException.cs
- XPathArrayIterator.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- HiddenField.cs
- Fx.cs
- VariableValue.cs
- SystemIPGlobalProperties.cs
- CodeMethodReturnStatement.cs
- CrossAppDomainChannel.cs
- SoapElementAttribute.cs
- BitConverter.cs
- TraceProvider.cs
- MimeReturn.cs
- HighlightComponent.cs
- RemoteWebConfigurationHost.cs
- TrustLevelCollection.cs
- ToolboxItemFilterAttribute.cs
- _RequestCacheProtocol.cs
- DispatcherHooks.cs
- RuntimeHandles.cs
- InputLanguageProfileNotifySink.cs
- UxThemeWrapper.cs
- PageCatalogPart.cs
- DLinqAssociationProvider.cs
- Visual.cs
- SiteMapNodeItemEventArgs.cs
- KeyValueConfigurationCollection.cs
- TransformCollection.cs
- SQLSingle.cs
- ProgressBar.cs
- DataStreamFromComStream.cs
- RuntimeConfig.cs
- Models.cs
- MemberInfoSerializationHolder.cs
- TextViewSelectionProcessor.cs
- ExpressionPrefixAttribute.cs
- BitmapEffectCollection.cs
- RegexFCD.cs
- AxWrapperGen.cs
- ServiceMetadataContractBehavior.cs
- CustomAttribute.cs
- ByteConverter.cs
- SqlStatistics.cs
- GridViewColumnHeader.cs
- X509Certificate2Collection.cs
- RightsManagementUser.cs
- HttpRawResponse.cs
- ConfigurationFileMap.cs
- DragCompletedEventArgs.cs
- PrinterSettings.cs
- ResourceReader.cs
- SqlConnectionFactory.cs
- UnsettableComboBox.cs
- ConstrainedDataObject.cs
- FontFamilyConverter.cs
- XPathChildIterator.cs
- GacUtil.cs
- FieldInfo.cs
- GeometryModel3D.cs
- Timer.cs
- DocumentCollection.cs
- XmlResolver.cs
- Transform3DCollection.cs
- PeerCollaborationPermission.cs
- FilterException.cs
- PriorityItem.cs
- CodeCatchClause.cs
- ScrollProperties.cs
- FormCollection.cs
- PasswordBox.cs
- Glyph.cs
- Vector3DValueSerializer.cs