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
- Rotation3D.cs
- NumericUpDown.cs
- SamlAudienceRestrictionCondition.cs
- ForceCopyBuildProvider.cs
- ProfileProvider.cs
- ApplicationServiceManager.cs
- COAUTHIDENTITY.cs
- BezierSegment.cs
- ExceptionHelpers.cs
- DataGridViewDataErrorEventArgs.cs
- FormView.cs
- MediaElement.cs
- DataColumnPropertyDescriptor.cs
- SystemBrushes.cs
- __FastResourceComparer.cs
- TraceSource.cs
- EditingScopeUndoUnit.cs
- TextTreeRootNode.cs
- XmlnsDictionary.cs
- xsdvalidator.cs
- SqlCommandBuilder.cs
- CustomAttributeFormatException.cs
- XamlWriter.cs
- Permission.cs
- FormViewInsertEventArgs.cs
- AncillaryOps.cs
- RawStylusActions.cs
- ProviderIncompatibleException.cs
- PaginationProgressEventArgs.cs
- RegexWriter.cs
- PcmConverter.cs
- XamlParser.cs
- MetadataItemEmitter.cs
- UnhandledExceptionEventArgs.cs
- HyperLinkDesigner.cs
- Logging.cs
- CustomAttributeSerializer.cs
- TreeNodeClickEventArgs.cs
- KnownBoxes.cs
- ToolStripOverflow.cs
- GridItem.cs
- SoapElementAttribute.cs
- ToolStrip.cs
- PointUtil.cs
- ValidationEventArgs.cs
- LinqDataSourceEditData.cs
- DataBoundControl.cs
- InkCanvasSelectionAdorner.cs
- Int32RectValueSerializer.cs
- DelayedRegex.cs
- ModelItemKeyValuePair.cs
- Debug.cs
- PeerObject.cs
- ISO2022Encoding.cs
- TemplateBindingExtension.cs
- ToolboxService.cs
- SqlAliasesReferenced.cs
- RadialGradientBrush.cs
- AssemblyBuilderData.cs
- FilteredDataSetHelper.cs
- PictureBoxDesigner.cs
- StateMachineWorkflowInstance.cs
- RangeBaseAutomationPeer.cs
- BoundingRectTracker.cs
- DataGridRow.cs
- FileDataSourceCache.cs
- DbTypeMap.cs
- ClientReliableChannelBinder.cs
- BaseDataBoundControl.cs
- ToolStripDropDownItemDesigner.cs
- Vector3DCollectionValueSerializer.cs
- ProgressBar.cs
- XmlDictionary.cs
- AddInPipelineAttributes.cs
- CalendarDayButton.cs
- BrowserCapabilitiesFactoryBase.cs
- DetailsViewDesigner.cs
- _TimerThread.cs
- ParentQuery.cs
- Array.cs
- PeerObject.cs
- WmlSelectionListAdapter.cs
- PartitionResolver.cs
- ActivityIdHeader.cs
- TextEditorLists.cs
- SelectionWordBreaker.cs
- HttpModulesSection.cs
- Inflater.cs
- ChildTable.cs
- Dump.cs
- ContentAlignmentEditor.cs
- StrokeNodeOperations.cs
- Setter.cs
- ContextMenuAutomationPeer.cs
- Constraint.cs
- RSAProtectedConfigurationProvider.cs
- Stack.cs
- ConnectionPoolManager.cs
- ExceptionHandlerDesigner.cs
- WinFormsSecurity.cs