Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ACL.cs
- SafeProcessHandle.cs
- FontFamilyValueSerializer.cs
- IEnumerable.cs
- Wildcard.cs
- LostFocusEventManager.cs
- WsdlInspector.cs
- Queue.cs
- SqlDataSourceCache.cs
- PrinterUnitConvert.cs
- RegexCaptureCollection.cs
- TraceSource.cs
- PassportIdentity.cs
- OdbcConnectionHandle.cs
- SoundPlayer.cs
- SHA256.cs
- ActiveXHost.cs
- TemplateField.cs
- dtdvalidator.cs
- RegistrationServices.cs
- _CacheStreams.cs
- TableRowCollection.cs
- DefaultExpressionVisitor.cs
- MetabaseReader.cs
- Thumb.cs
- XmlTextReader.cs
- NativeObjectSecurity.cs
- ResourceContainer.cs
- SafeRightsManagementHandle.cs
- TextInfo.cs
- BamlTreeNode.cs
- SwitchLevelAttribute.cs
- Int32Storage.cs
- SmiConnection.cs
- FixedSOMTableCell.cs
- QueryExpression.cs
- BitmapDecoder.cs
- BuildProvider.cs
- IDQuery.cs
- MtomMessageEncodingElement.cs
- DataGridCaption.cs
- Form.cs
- SqlRemoveConstantOrderBy.cs
- FontSourceCollection.cs
- DataBoundControlParameterTarget.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DrawingBrush.cs
- WeakReadOnlyCollection.cs
- ScalarConstant.cs
- GlobalDataBindingHandler.cs
- JavaScriptSerializer.cs
- SerializationStore.cs
- AudienceUriMode.cs
- PenThreadWorker.cs
- TraceFilter.cs
- wgx_exports.cs
- ReadOnlyDictionary.cs
- Instrumentation.cs
- File.cs
- MessageFilterException.cs
- FormClosingEvent.cs
- ModelTypeConverter.cs
- SettingsPropertyIsReadOnlyException.cs
- InvalidPrinterException.cs
- DiagnosticTrace.cs
- GeneralTransform3DCollection.cs
- WebPartHelpVerb.cs
- DecoderBestFitFallback.cs
- Zone.cs
- StringConverter.cs
- InitializingNewItemEventArgs.cs
- UnsettableComboBox.cs
- ItemsControl.cs
- FolderNameEditor.cs
- Buffer.cs
- UriTemplateClientFormatter.cs
- NullableConverter.cs
- MissingSatelliteAssemblyException.cs
- ListViewItemMouseHoverEvent.cs
- Relationship.cs
- XPathSelectionIterator.cs
- thaishape.cs
- Environment.cs
- wgx_exports.cs
- TreeNodeBindingDepthConverter.cs
- EFColumnProvider.cs
- DragDropHelper.cs
- EventProviderBase.cs
- EntityCommandExecutionException.cs
- MetadataItemEmitter.cs
- CacheOutputQuery.cs
- QuaternionAnimation.cs
- DataRecordObjectView.cs
- SmtpFailedRecipientException.cs
- NativeBuffer.cs
- SqlDataSourceEnumerator.cs
- InheritanceRules.cs
- ValidationErrorEventArgs.cs
- XAMLParseException.cs
- ColorBuilder.cs