Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- IndexedString.cs
- DeferredReference.cs
- KerberosRequestorSecurityToken.cs
- PageParserFilter.cs
- CorePropertiesFilter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RecognizedWordUnit.cs
- DataServiceExpressionVisitor.cs
- SeparatorAutomationPeer.cs
- Keywords.cs
- AttributeXamlType.cs
- UnsafeNativeMethods.cs
- ToolStripGrip.cs
- ProxyFragment.cs
- GeneralTransformGroup.cs
- TypeBuilderInstantiation.cs
- ProgressChangedEventArgs.cs
- COSERVERINFO.cs
- ConnectionStringsExpressionBuilder.cs
- AttachInfo.cs
- EmptyQuery.cs
- EDesignUtil.cs
- AsymmetricSignatureFormatter.cs
- ObjectManager.cs
- DynamicILGenerator.cs
- FileDialog_Vista_Interop.cs
- FormViewInsertEventArgs.cs
- AppDomainUnloadedException.cs
- RequestCache.cs
- GetWinFXPath.cs
- RemoteDebugger.cs
- BufferedGenericXmlSecurityToken.cs
- DSACryptoServiceProvider.cs
- FileNotFoundException.cs
- DataGridViewCellParsingEventArgs.cs
- MultipartIdentifier.cs
- UnsignedPublishLicense.cs
- FlowLayoutPanel.cs
- TraceHelpers.cs
- TryExpression.cs
- ResetableIterator.cs
- DbTransaction.cs
- RemoveStoryboard.cs
- XmlNullResolver.cs
- TreeNode.cs
- XPathItem.cs
- TransactionChannelListener.cs
- SrgsSubset.cs
- TraceEventCache.cs
- XmlDataDocument.cs
- RequestQueue.cs
- CodeAttributeDeclaration.cs
- LayoutEvent.cs
- bindurihelper.cs
- ToolStrip.cs
- XMLSchema.cs
- SQLDoubleStorage.cs
- ReferenceEqualityComparer.cs
- IgnoreDeviceFilterElement.cs
- WorkItem.cs
- ApplicationId.cs
- MailDefinition.cs
- ApplicationGesture.cs
- HttpListenerRequestTraceRecord.cs
- TableLayoutStyle.cs
- SelectionChangedEventArgs.cs
- PageRanges.cs
- RoutedEventArgs.cs
- SQLInt16.cs
- CompilerGeneratedAttribute.cs
- DBCommand.cs
- ObjectAnimationUsingKeyFrames.cs
- Win32MouseDevice.cs
- CacheOutputQuery.cs
- ToolStripScrollButton.cs
- HostnameComparisonMode.cs
- SqlDataSourceQueryEditorForm.cs
- TextEncodedRawTextWriter.cs
- XmlNamespaceManager.cs
- SQLMembershipProvider.cs
- LabelDesigner.cs
- CapiNative.cs
- TableRowGroup.cs
- FormsAuthenticationModule.cs
- DetailsViewCommandEventArgs.cs
- GenericRootAutomationPeer.cs
- BaseCAMarshaler.cs
- Registry.cs
- BadImageFormatException.cs
- XmlObjectSerializerReadContext.cs
- IpcClientChannel.cs
- ClaimTypes.cs
- ValidationPropertyAttribute.cs
- HttpCacheVary.cs
- LeaseManager.cs
- Vector3DCollection.cs
- CompatibleComparer.cs
- Vector3DAnimation.cs
- ZoneButton.cs
- SqlRecordBuffer.cs