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
- TimelineCollection.cs
- filewebrequest.cs
- HandlerFactoryWrapper.cs
- Imaging.cs
- EqualityComparer.cs
- XmlAttributeCollection.cs
- DispatcherSynchronizationContext.cs
- DSASignatureDeformatter.cs
- LoginName.cs
- InputGestureCollection.cs
- DataGridView.cs
- FormClosedEvent.cs
- ListDictionaryInternal.cs
- ResolvedKeyFrameEntry.cs
- CodeLabeledStatement.cs
- ExpanderAutomationPeer.cs
- TypefaceMap.cs
- EncoderExceptionFallback.cs
- BinaryHeap.cs
- ScrollChrome.cs
- ObjectToIdCache.cs
- FacetEnabledSchemaElement.cs
- DataGridColumnStyleMappingNameEditor.cs
- SHA1CryptoServiceProvider.cs
- XmlFileEditor.cs
- MSAANativeProvider.cs
- IncrementalReadDecoders.cs
- ButtonFieldBase.cs
- CuspData.cs
- HttpFileCollection.cs
- ViewBox.cs
- InheritedPropertyChangedEventArgs.cs
- GifBitmapDecoder.cs
- StylusShape.cs
- COM2PropertyPageUITypeConverter.cs
- RegexCharClass.cs
- StackSpiller.Generated.cs
- CriticalHandle.cs
- ColumnHeaderConverter.cs
- DesignerActionVerbItem.cs
- SchemaDeclBase.cs
- ThreadPool.cs
- RuntimeConfigurationRecord.cs
- TextureBrush.cs
- XmlElementAttribute.cs
- BitmapEffectGeneralTransform.cs
- XmlNamespaceMapping.cs
- ConstraintStruct.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ParameterToken.cs
- SiteIdentityPermission.cs
- MetadataStore.cs
- IndentedTextWriter.cs
- AuthenticationModuleElementCollection.cs
- ScriptManager.cs
- ServiceControllerDesigner.cs
- RawMouseInputReport.cs
- UnsafeNativeMethods.cs
- HtmlInputRadioButton.cs
- COM2PropertyDescriptor.cs
- MaskInputRejectedEventArgs.cs
- TableMethodGenerator.cs
- TempFiles.cs
- Mapping.cs
- IpcClientManager.cs
- HostDesigntimeLicenseContext.cs
- LinqDataSource.cs
- GPStream.cs
- GridViewSortEventArgs.cs
- PerfCounterSection.cs
- AdRotatorDesigner.cs
- DataControlFieldHeaderCell.cs
- SiteMapProvider.cs
- DataGridViewDataConnection.cs
- Int32RectConverter.cs
- CustomWebEventKey.cs
- PropertyTab.cs
- InputElement.cs
- Panel.cs
- MetadataArtifactLoaderCompositeResource.cs
- NativeCompoundFileAPIs.cs
- FilterableAttribute.cs
- SecurityTokenResolver.cs
- Helpers.cs
- ValueTypeFixupInfo.cs
- ConfigurationPropertyCollection.cs
- PerformanceCounterCategory.cs
- EventHandlerList.cs
- TreeWalkHelper.cs
- MarkupExtensionReturnTypeAttribute.cs
- ListView.cs
- SingleObjectCollection.cs
- CodeAttributeDeclaration.cs
- StyleModeStack.cs
- SourceChangedEventArgs.cs
- EventDescriptorCollection.cs
- PanelStyle.cs
- DecoderBestFitFallback.cs
- ImmutableCollection.cs
- DataGridToolTip.cs