Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DeferredRunTextReference.cs / 1305600 / DeferredRunTextReference.cs
//---------------------------------------------------------------------------- // // File: DeferredRunTextReference.cs // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: Proxy object passed to the property system to delay load // TextProperty values. // //--------------------------------------------------------------------------- namespace System.Windows.Controls { using System.Windows.Documents; // Proxy object passed to the property system to delay load TextProperty // values. internal class DeferredRunTextReference : DeferredReference { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal DeferredRunTextReference(Run run) { _run = run; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods // Does the real work to calculate the current TextProperty value. internal override object GetValue(BaseValueSourceInternal valueSource) { return TextRangeBase.GetTextInternal(_run.ContentStart, _run.ContentEnd); } // Gets the type of the value it represents internal override Type GetValueType() { return typeof(string); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // Run mapped to this object. private readonly Run _run; #endregion Private Fields } } // 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
- CancelEventArgs.cs
- SqlStatistics.cs
- SamlSerializer.cs
- AdornerLayer.cs
- EventMappingSettingsCollection.cs
- SharedConnectionWorkflowTransactionService.cs
- CompilationSection.cs
- HttpApplicationFactory.cs
- ArgumentOutOfRangeException.cs
- EqualityComparer.cs
- HostDesigntimeLicenseContext.cs
- RuntimeConfigLKG.cs
- ProtocolInformationReader.cs
- StubHelpers.cs
- MetadataProperty.cs
- Context.cs
- WorkItem.cs
- FontNamesConverter.cs
- MetaColumn.cs
- PowerEase.cs
- ObjectResult.cs
- MergeLocalizationDirectives.cs
- Utils.cs
- DBPropSet.cs
- XmlSchemaCollection.cs
- CompilerGeneratedAttribute.cs
- DocumentPropertiesDialog.cs
- LambdaReference.cs
- Stack.cs
- DbgUtil.cs
- UpdatePanelTrigger.cs
- ConnectionString.cs
- HtmlForm.cs
- SessionStateSection.cs
- PersistChildrenAttribute.cs
- RemoteWebConfigurationHostServer.cs
- EventWaitHandleSecurity.cs
- Fonts.cs
- DataSourceView.cs
- CdpEqualityComparer.cs
- EdmItemCollection.OcAssemblyCache.cs
- SvcMapFileLoader.cs
- ToolStripContextMenu.cs
- NodeInfo.cs
- ResourceExpression.cs
- WebPartZone.cs
- Emitter.cs
- BulletedList.cs
- RuleSettings.cs
- ExpressionDumper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Pen.cs
- ExistsInCollection.cs
- PlatformNotSupportedException.cs
- GroupBox.cs
- HotSpotCollectionEditor.cs
- DeobfuscatingStream.cs
- CompensatableSequenceActivity.cs
- EntityContainerEmitter.cs
- ButtonRenderer.cs
- PrimitiveXmlSerializers.cs
- XmlAttributeOverrides.cs
- EllipticalNodeOperations.cs
- TableStyle.cs
- SymmetricCryptoHandle.cs
- SingleObjectCollection.cs
- ColumnWidthChangedEvent.cs
- _NegoState.cs
- WebControlsSection.cs
- DetailsViewRow.cs
- EntityProviderFactory.cs
- PenContexts.cs
- TableLayoutColumnStyleCollection.cs
- ListChunk.cs
- BinaryExpression.cs
- SqlDataSourceCache.cs
- TextRangeEdit.cs
- URI.cs
- NumberAction.cs
- XmlQueryTypeFactory.cs
- AlternateView.cs
- ActivitySurrogate.cs
- BinaryUtilClasses.cs
- InkPresenterAutomationPeer.cs
- PathSegmentCollection.cs
- NumberAction.cs
- DurableInstanceProvider.cs
- RunInstallerAttribute.cs
- HttpException.cs
- PathNode.cs
- CollectionChangedEventManager.cs
- HTMLTagNameToTypeMapper.cs
- IndexOutOfRangeException.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- MasterPageCodeDomTreeGenerator.cs
- ColumnResizeAdorner.cs
- PixelFormat.cs
- AuthenticateEventArgs.cs
- Int32.cs
- Descriptor.cs