Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- DataGridHelper.cs
- DetailsViewCommandEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- SqlUtil.cs
- RequestQueue.cs
- IgnoreDeviceFilterElement.cs
- ValueProviderWrapper.cs
- MultiViewDesigner.cs
- WebErrorHandler.cs
- ItemDragEvent.cs
- SrgsElementFactory.cs
- JapaneseLunisolarCalendar.cs
- MethodBuilderInstantiation.cs
- Enum.cs
- ListParagraph.cs
- XmlHelper.cs
- IISUnsafeMethods.cs
- VirtualDirectoryMappingCollection.cs
- XmlWriterSettings.cs
- SafeNativeMethods.cs
- XmlArrayItemAttributes.cs
- ChangeConflicts.cs
- CfgParser.cs
- DbSourceCommand.cs
- RoleGroup.cs
- CompiledELinqQueryState.cs
- ListBoxChrome.cs
- validation.cs
- StopStoryboard.cs
- ExpandSegment.cs
- FileLogRecordHeader.cs
- QueueProcessor.cs
- xmlfixedPageInfo.cs
- OperationContractAttribute.cs
- MethodCallExpression.cs
- PermissionSet.cs
- XmlWrappingReader.cs
- SqlCommandSet.cs
- PermissionToken.cs
- PeerApplication.cs
- HtmlInputHidden.cs
- ParallelTimeline.cs
- HtmlControlAdapter.cs
- EncoderReplacementFallback.cs
- ResourcesBuildProvider.cs
- ResXBuildProvider.cs
- DragEvent.cs
- CodeRemoveEventStatement.cs
- ScriptComponentDescriptor.cs
- CodeAttachEventStatement.cs
- FixedDocumentPaginator.cs
- XmlTextWriter.cs
- CopyNamespacesAction.cs
- COAUTHINFO.cs
- BoundingRectTracker.cs
- ValueChangedEventManager.cs
- BrowsableAttribute.cs
- SurrogateDataContract.cs
- ContentDefinition.cs
- ScrollChrome.cs
- TabControlCancelEvent.cs
- WebResponse.cs
- ErrorFormatterPage.cs
- MessageQueueEnumerator.cs
- ManifestResourceInfo.cs
- WebDisplayNameAttribute.cs
- StrongNamePublicKeyBlob.cs
- WsatServiceAddress.cs
- PeerPresenceInfo.cs
- Row.cs
- ScrollBarAutomationPeer.cs
- TypeResolvingOptions.cs
- ToolStripPanelSelectionGlyph.cs
- ReadOnlyNameValueCollection.cs
- DocumentEventArgs.cs
- AdapterDictionary.cs
- DesignColumn.cs
- RepeaterItemEventArgs.cs
- SpecialTypeDataContract.cs
- TypeExtensionConverter.cs
- WorkflowRuntimeEndpoint.cs
- DataGridViewColumnStateChangedEventArgs.cs
- BitStack.cs
- CounterCreationData.cs
- NamedObject.cs
- GeneralTransform3D.cs
- TextRangeEdit.cs
- UiaCoreProviderApi.cs
- ScriptControlDescriptor.cs
- SchemaMapping.cs
- HttpFileCollection.cs
- XslTransform.cs
- ObjectDataSourceEventArgs.cs
- TreeNodeStyleCollection.cs
- CalendarTable.cs
- SizeChangedInfo.cs
- HttpApplication.cs
- SessionStateModule.cs
- HttpProxyTransportBindingElement.cs
- AppModelKnownContentFactory.cs