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
- Pair.cs
- CompositeActivityDesigner.cs
- InvalidPrinterException.cs
- FormViewDeleteEventArgs.cs
- HtmlElementErrorEventArgs.cs
- EncodingDataItem.cs
- RegexCompilationInfo.cs
- DynamicEndpointElement.cs
- FrameworkElement.cs
- CommandHelper.cs
- DescendantOverDescendantQuery.cs
- RolePrincipal.cs
- QilIterator.cs
- ScriptReferenceEventArgs.cs
- MinimizableAttributeTypeConverter.cs
- TextElementCollectionHelper.cs
- TouchDevice.cs
- InternalBufferOverflowException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- IsolatedStorageFileStream.cs
- TreeNode.cs
- WebPartAddingEventArgs.cs
- LinqDataSourceContextEventArgs.cs
- CompiledXpathExpr.cs
- OracleParameter.cs
- XmlSchemaSet.cs
- DataKeyCollection.cs
- EntityTypeBase.cs
- SortKey.cs
- ConfigurationLockCollection.cs
- SoapAttributeAttribute.cs
- SQLResource.cs
- MarkupProperty.cs
- DataGridBoolColumn.cs
- PointAnimation.cs
- ByteKeyFrameCollection.cs
- SqlNotificationEventArgs.cs
- TypeUtils.cs
- ParagraphResult.cs
- HttpProtocolImporter.cs
- ColorConvertedBitmap.cs
- SerializationStore.cs
- Package.cs
- OverrideMode.cs
- Formatter.cs
- ImageBrush.cs
- ReachFixedDocumentSerializer.cs
- XmlnsCompatibleWithAttribute.cs
- GeneralTransform.cs
- UpdateException.cs
- GroupDescription.cs
- Profiler.cs
- SchemaImporterExtension.cs
- ScriptMethodAttribute.cs
- SafeViewOfFileHandle.cs
- ObjectDataSourceSelectingEventArgs.cs
- EmissiveMaterial.cs
- VersionedStream.cs
- NoResizeSelectionBorderGlyph.cs
- Vector3DCollection.cs
- Nodes.cs
- PropertyChangeTracker.cs
- PersonalizationDictionary.cs
- HandleRef.cs
- DatePickerTextBox.cs
- MTConfigUtil.cs
- ThreadPool.cs
- UIElementParagraph.cs
- DataGridViewControlCollection.cs
- AdornerPresentationContext.cs
- WeakHashtable.cs
- MailHeaderInfo.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Hash.cs
- UITypeEditor.cs
- controlskin.cs
- RequestCache.cs
- XmlAttribute.cs
- ComponentResourceKeyConverter.cs
- diagnosticsswitches.cs
- SiteMembershipCondition.cs
- FixUp.cs
- ToolStripPanelRow.cs
- RelationshipConstraintValidator.cs
- AnnotationComponentManager.cs
- XmlMapping.cs
- IteratorDescriptor.cs
- ValidationSummary.cs
- ExpressionNormalizer.cs
- ping.cs
- OperatingSystem.cs
- DataSourceSelectArguments.cs
- RandomNumberGenerator.cs
- PagedDataSource.cs
- ExpandCollapsePattern.cs
- Setter.cs
- DataGridViewColumnCollection.cs
- ObjectReferenceStack.cs
- AQNBuilder.cs
- ValidationErrorCollection.cs