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
- VirtualizedContainerService.cs
- ImageBrush.cs
- AtomMaterializerLog.cs
- StorageEndPropertyMapping.cs
- ContractSearchPattern.cs
- ContentType.cs
- CompilerCollection.cs
- HtmlInputReset.cs
- AsyncCallback.cs
- ReceiveReply.cs
- EntityDataSourceContextCreatingEventArgs.cs
- InternalsVisibleToAttribute.cs
- SimpleRecyclingCache.cs
- FormViewCommandEventArgs.cs
- DeferrableContent.cs
- DrawingGroup.cs
- DaylightTime.cs
- FormView.cs
- ScrollPatternIdentifiers.cs
- DataControlField.cs
- Nullable.cs
- ColumnMapTranslator.cs
- ToolboxDataAttribute.cs
- VSWCFServiceContractGenerator.cs
- StreamHelper.cs
- FormatConvertedBitmap.cs
- ToolboxItemCollection.cs
- AddingNewEventArgs.cs
- GreenMethods.cs
- LocalizedNameDescriptionPair.cs
- RuntimeHelpers.cs
- SqlCommandSet.cs
- TypedElement.cs
- DecimalAnimationUsingKeyFrames.cs
- BindingGraph.cs
- RemotingSurrogateSelector.cs
- BitFlagsGenerator.cs
- SimpleColumnProvider.cs
- OptionUsage.cs
- NotifyCollectionChangedEventArgs.cs
- ShaderRenderModeValidation.cs
- DefaultBindingPropertyAttribute.cs
- MiniConstructorInfo.cs
- CollaborationHelperFunctions.cs
- IsolatedStorageException.cs
- RuleAction.cs
- ToolBarButton.cs
- BaseProcessProtocolHandler.cs
- DataShape.cs
- SingleConverter.cs
- HMACSHA512.cs
- ProcessModuleCollection.cs
- SharedStatics.cs
- RenderData.cs
- XmlIncludeAttribute.cs
- ShapingWorkspace.cs
- XmlSerializerSection.cs
- XhtmlTextWriter.cs
- ProfileSettings.cs
- CancelRequestedRecord.cs
- Slider.cs
- BamlReader.cs
- XmlILConstructAnalyzer.cs
- ScriptComponentDescriptor.cs
- ZipIOLocalFileHeader.cs
- ThreadNeutralSemaphore.cs
- HttpProfileGroupBase.cs
- DelayedRegex.cs
- EventProviderBase.cs
- BrowserDefinitionCollection.cs
- DrawingContextWalker.cs
- SafeNativeMemoryHandle.cs
- GeometryCombineModeValidation.cs
- EventTrigger.cs
- sortedlist.cs
- HttpHandlerAction.cs
- OrderedParallelQuery.cs
- DocumentXmlWriter.cs
- ByteConverter.cs
- HorizontalAlignConverter.cs
- NavigateEvent.cs
- Int32AnimationUsingKeyFrames.cs
- EntityDataSourceView.cs
- XmlObjectSerializerWriteContext.cs
- TypedElement.cs
- Freezable.cs
- WebServiceData.cs
- RegexCompiler.cs
- ObjectDataSourceFilteringEventArgs.cs
- SessionSwitchEventArgs.cs
- CharacterMetricsDictionary.cs
- UserInitiatedNavigationPermission.cs
- TemplateControlBuildProvider.cs
- ChannelEndpointElementCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- TreeNodeStyle.cs
- CheckBox.cs
- ModulesEntry.cs
- SafeIUnknown.cs
- FlowNode.cs