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
- WebServiceHostFactory.cs
- Wildcard.cs
- ProfileInfo.cs
- Rotation3DAnimationUsingKeyFrames.cs
- StylusCollection.cs
- WebPartRestoreVerb.cs
- ScriptReferenceBase.cs
- Grant.cs
- sqlcontext.cs
- storagemappingitemcollection.viewdictionary.cs
- TimeSpanValidatorAttribute.cs
- InputLanguageCollection.cs
- KeyedPriorityQueue.cs
- MultipartContentParser.cs
- SqlAliaser.cs
- TrackingProfileDeserializationException.cs
- XmlDigitalSignatureProcessor.cs
- ReliabilityContractAttribute.cs
- Schema.cs
- ColorAnimationBase.cs
- SafeReversePInvokeHandle.cs
- TextTrailingCharacterEllipsis.cs
- ForwardPositionQuery.cs
- IMembershipProvider.cs
- DataTableExtensions.cs
- FigureParaClient.cs
- ClientSettingsProvider.cs
- DeleteIndexBinder.cs
- ListBoxItemAutomationPeer.cs
- JsonXmlDataContract.cs
- ContextInformation.cs
- HotSpot.cs
- DataGridViewDataConnection.cs
- DoubleAnimation.cs
- ResXDataNode.cs
- ExceptionCollection.cs
- XmlSchemaCompilationSettings.cs
- AppLevelCompilationSectionCache.cs
- WindowsProgressbar.cs
- ImageAnimator.cs
- JoinQueryOperator.cs
- JumpList.cs
- Rotation3DAnimation.cs
- DataSourceUtil.cs
- FormsAuthenticationCredentials.cs
- ThrowHelper.cs
- dtdvalidator.cs
- StringCollectionEditor.cs
- MatrixIndependentAnimationStorage.cs
- XmlEntity.cs
- Variable.cs
- ButtonDesigner.cs
- RecognizedWordUnit.cs
- SecurityHeaderTokenResolver.cs
- HandlerWithFactory.cs
- HtmlElementEventArgs.cs
- ScriptDescriptor.cs
- SmtpMail.cs
- UserPrincipalNameElement.cs
- TiffBitmapEncoder.cs
- SqlServices.cs
- TargetControlTypeCache.cs
- GridSplitterAutomationPeer.cs
- AuthenticodeSignatureInformation.cs
- DataQuery.cs
- SoapExtensionTypeElement.cs
- IisTraceListener.cs
- VBCodeProvider.cs
- Int32Storage.cs
- ResourceAttributes.cs
- CollectionBuilder.cs
- TextEditorDragDrop.cs
- BaseHashHelper.cs
- CacheSection.cs
- CharConverter.cs
- ForwardPositionQuery.cs
- CodeNamespaceImportCollection.cs
- VisualTarget.cs
- ArrayTypeMismatchException.cs
- HttpServerProtocol.cs
- Exception.cs
- NetworkAddressChange.cs
- RelationshipConverter.cs
- adornercollection.cs
- AttributeCollection.cs
- TypeConverterHelper.cs
- MD5Cng.cs
- SerializableAttribute.cs
- AppDomainFactory.cs
- SHA1Managed.cs
- Aggregates.cs
- XmlSchemaRedefine.cs
- XpsFontSubsetter.cs
- StrongName.cs
- IndexedString.cs
- SecurityDocument.cs
- WpfWebRequestHelper.cs
- GridViewSortEventArgs.cs
- XPathNode.cs
- WSSecurityPolicy12.cs