Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlReferenceCollection.cs
- UserControlCodeDomTreeGenerator.cs
- ManagementNamedValueCollection.cs
- PropertyGridEditorPart.cs
- BitmapCodecInfoInternal.cs
- SQLInt32.cs
- HandlerBase.cs
- SqlConnectionString.cs
- GlyphsSerializer.cs
- XmlSchemaChoice.cs
- MetadataArtifactLoaderComposite.cs
- ScriptingAuthenticationServiceSection.cs
- SafeCryptoHandles.cs
- ImageAnimator.cs
- WindowsAuthenticationModule.cs
- SqlDataSource.cs
- LinearQuaternionKeyFrame.cs
- HttpListenerContext.cs
- WebPartConnectionsEventArgs.cs
- TrackPoint.cs
- BamlLocalizationDictionary.cs
- ColumnResizeAdorner.cs
- Transform3D.cs
- ResourcePart.cs
- CellPartitioner.cs
- QuaternionIndependentAnimationStorage.cs
- TreeNodeBinding.cs
- GPRECT.cs
- CompositionCommandSet.cs
- DesignerActionUIStateChangeEventArgs.cs
- RtfControls.cs
- xmlfixedPageInfo.cs
- FunctionNode.cs
- DataProtection.cs
- TreeNodeCollection.cs
- DiagnosticTrace.cs
- Property.cs
- XmlChildEnumerator.cs
- PropertyGridView.cs
- SettingsBindableAttribute.cs
- DoubleLink.cs
- AssemblyCollection.cs
- AuthenticatedStream.cs
- SafeEventLogReadHandle.cs
- EraserBehavior.cs
- ToolStripDropDown.cs
- ISAPIWorkerRequest.cs
- CodeGroup.cs
- ExpandCollapseIsCheckedConverter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- TemplatedAdorner.cs
- ExpressionCopier.cs
- AsyncWaitHandle.cs
- SystemIPv6InterfaceProperties.cs
- SmtpFailedRecipientException.cs
- ValidatorCompatibilityHelper.cs
- SelectionGlyphBase.cs
- Size.cs
- Paragraph.cs
- ToolStripRenderEventArgs.cs
- ButtonPopupAdapter.cs
- ProtectedConfiguration.cs
- CommandHelpers.cs
- TextBoxBase.cs
- CheckBox.cs
- CellCreator.cs
- FlowDocumentView.cs
- ImageCodecInfo.cs
- EventDescriptor.cs
- SystemIPv6InterfaceProperties.cs
- AttachedAnnotationChangedEventArgs.cs
- ModelTreeEnumerator.cs
- HtmlTableCell.cs
- FixedLineResult.cs
- SendMessageContent.cs
- Type.cs
- TrueReadOnlyCollection.cs
- WebPartChrome.cs
- PeerCollaborationPermission.cs
- MenuItem.cs
- IndentedWriter.cs
- TypeCollectionDesigner.xaml.cs
- Completion.cs
- Vector3DValueSerializer.cs
- FormViewDesigner.cs
- EtwTrace.cs
- _UriSyntax.cs
- Scripts.cs
- ChannelManager.cs
- PlainXmlDeserializer.cs
- VBCodeProvider.cs
- PromptStyle.cs
- TypeDescriptor.cs
- TextTrailingWordEllipsis.cs
- StorageRoot.cs
- NodeFunctions.cs
- FragmentNavigationEventArgs.cs
- ApplicationBuildProvider.cs
- UdpChannelListener.cs
- ByteFacetDescriptionElement.cs