Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 2-5-2004 [....] ([....]) // //----------------------------------------------------------------------- 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
- DoubleAnimationBase.cs
- ResourceReferenceKeyNotFoundException.cs
- QilVisitor.cs
- ChangeNode.cs
- OptimizedTemplateContentHelper.cs
- OutOfProcStateClientManager.cs
- rsa.cs
- Handle.cs
- TabControlCancelEvent.cs
- SafeFileMappingHandle.cs
- ContextMenuStripActionList.cs
- UnicodeEncoding.cs
- ScaleTransform3D.cs
- DataSourceCache.cs
- ChangePasswordAutoFormat.cs
- MetadataArtifactLoaderCompositeFile.cs
- NonParentingControl.cs
- OutputScopeManager.cs
- TransportationConfigurationTypeInstallComponent.cs
- CachingHintValidation.cs
- FreezableCollection.cs
- OleDbRowUpdatingEvent.cs
- HostingEnvironmentException.cs
- TraceRecords.cs
- ConfigurationManagerInternal.cs
- PeerName.cs
- WebPartConnectionsEventArgs.cs
- CompilationRelaxations.cs
- DataGridTextBox.cs
- QueryContext.cs
- CompositeCollectionView.cs
- RegisteredExpandoAttribute.cs
- AudienceUriMode.cs
- DataExpression.cs
- DocumentOrderQuery.cs
- PasswordTextContainer.cs
- WorkflowPageSetupDialog.cs
- UniqueEventHelper.cs
- Int32AnimationUsingKeyFrames.cs
- HtmlWindow.cs
- ChannelSinkStacks.cs
- XmlSerializerNamespaces.cs
- BinaryObjectReader.cs
- EmissiveMaterial.cs
- ResourceExpressionEditorSheet.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SHA1CryptoServiceProvider.cs
- RtfFormatStack.cs
- ReferenceAssemblyAttribute.cs
- DynamicControl.cs
- RangeValidator.cs
- WindowsScrollBar.cs
- ParserStreamGeometryContext.cs
- RegexRunnerFactory.cs
- LassoHelper.cs
- DeviceContexts.cs
- Switch.cs
- Canvas.cs
- FixedSOMImage.cs
- CanExpandCollapseAllConverter.cs
- FloaterParaClient.cs
- HttpModuleAction.cs
- DbParameterCollectionHelper.cs
- SmtpNetworkElement.cs
- StringUtil.cs
- SqlCommand.cs
- HMACRIPEMD160.cs
- PageThemeBuildProvider.cs
- SystemMulticastIPAddressInformation.cs
- TemplateNameScope.cs
- EntityEntry.cs
- UdpDuplexChannel.cs
- EventRecord.cs
- GridEntry.cs
- RuleInfoComparer.cs
- sqlnorm.cs
- XslVisitor.cs
- InvokeBinder.cs
- TableCell.cs
- TargetInvocationException.cs
- PropertySourceInfo.cs
- WmfPlaceableFileHeader.cs
- Transactions.cs
- GeneralTransform.cs
- PluggableProtocol.cs
- DictionaryContent.cs
- TagNameToTypeMapper.cs
- EntityDataSourceWrapper.cs
- MouseDevice.cs
- BrowserTree.cs
- SqlFacetAttribute.cs
- HtmlTableCellCollection.cs
- Size.cs
- DetailsViewModeEventArgs.cs
- SHA384Managed.cs
- LazyInitializer.cs
- RemoteHelper.cs
- MenuTracker.cs
- NodeFunctions.cs
- IndentedTextWriter.cs