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
- ChildTable.cs
- DiffuseMaterial.cs
- EncoderParameters.cs
- SkinBuilder.cs
- ButtonFieldBase.cs
- SimpleBitVector32.cs
- HttpConfigurationContext.cs
- ExpressionWriter.cs
- DispatcherExceptionFilterEventArgs.cs
- AdPostCacheSubstitution.cs
- StylusPointProperty.cs
- DBConnection.cs
- BoolExpressionVisitors.cs
- WebEventTraceProvider.cs
- UpdateInfo.cs
- typedescriptorpermission.cs
- DesignerDataSourceView.cs
- BinaryReader.cs
- RegexParser.cs
- WebPartAuthorizationEventArgs.cs
- DataRelation.cs
- DrawingContextDrawingContextWalker.cs
- DesignBindingPicker.cs
- PasswordBoxAutomationPeer.cs
- GPPOINTF.cs
- Atom10FeedFormatter.cs
- DataViewManagerListItemTypeDescriptor.cs
- ProfileService.cs
- DataListAutoFormat.cs
- SqlErrorCollection.cs
- WorkflowDebuggerSteppingAttribute.cs
- SslStream.cs
- LinearGradientBrush.cs
- ListMarkerSourceInfo.cs
- Renderer.cs
- ScrollPattern.cs
- ExpressionNormalizer.cs
- DataTableReaderListener.cs
- ToolStripSeparatorRenderEventArgs.cs
- NativeMethods.cs
- BridgeDataRecord.cs
- BoundsDrawingContextWalker.cs
- SortAction.cs
- SelectingProviderEventArgs.cs
- UdpConstants.cs
- ADRoleFactory.cs
- RadioButtonPopupAdapter.cs
- ByteAnimation.cs
- UnionExpr.cs
- EntityDesignerUtils.cs
- GridItemProviderWrapper.cs
- Part.cs
- PropertyState.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- GreenMethods.cs
- Geometry3D.cs
- MethodImplAttribute.cs
- EncryptedType.cs
- ToolBar.cs
- PageParserFilter.cs
- MenuAutomationPeer.cs
- EventWaitHandleSecurity.cs
- WebBrowserProgressChangedEventHandler.cs
- SuppressIldasmAttribute.cs
- DefaultPrintController.cs
- __TransparentProxy.cs
- RenderCapability.cs
- BitmapVisualManager.cs
- FilteredAttributeCollection.cs
- ObjectItemCachedAssemblyLoader.cs
- HierarchicalDataSourceIDConverter.cs
- TextTreeInsertElementUndoUnit.cs
- path.cs
- UserCancellationException.cs
- PointLightBase.cs
- SqlWorkflowPersistenceService.cs
- BindingGroup.cs
- DbConnectionInternal.cs
- WriteFileContext.cs
- Cursor.cs
- PropertyItem.cs
- TextFormatterHost.cs
- InvalidEnumArgumentException.cs
- ProtocolsConfigurationEntry.cs
- RIPEMD160Managed.cs
- DataGridViewIntLinkedList.cs
- XmlHelper.cs
- MembershipPasswordException.cs
- OracleConnectionString.cs
- Double.cs
- TextServicesCompartmentContext.cs
- LocatorPartList.cs
- ProgressBarAutomationPeer.cs
- EntryWrittenEventArgs.cs
- PerformanceCounterManager.cs
- TableItemStyle.cs
- RuleSettings.cs
- IPGlobalProperties.cs
- RSAOAEPKeyExchangeFormatter.cs
- InternalMappingException.cs