Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / DeferredTextReference.cs / 1 / DeferredTextReference.cs
//---------------------------------------------------------------------------- // // File: DeferredTextReference.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 DeferredTextReference : DeferredReference { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal DeferredTextReference(ITextContainer textContainer) { _textContainer = textContainer; } #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(_textContainer.Start, _textContainer.End); } // Gets the type of the value it represents internal override Type GetValueType() { return typeof(string); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // TextContainer mapped to this object. private readonly ITextContainer _textContainer; #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
- Command.cs
- GradientStop.cs
- SslStreamSecurityBindingElement.cs
- InternalPolicyElement.cs
- ZipIOLocalFileDataDescriptor.cs
- InternalsVisibleToAttribute.cs
- PropertyBuilder.cs
- DependencyProperty.cs
- ToolStripPanelCell.cs
- CompensateDesigner.cs
- StrokeNodeOperations2.cs
- ThreadStaticAttribute.cs
- CommandConverter.cs
- SoapAttributeAttribute.cs
- HGlobalSafeHandle.cs
- DateTimeFormatInfo.cs
- base64Transforms.cs
- HostedImpersonationContext.cs
- InternalDispatchObject.cs
- XmlUTF8TextWriter.cs
- UIPropertyMetadata.cs
- AttributeData.cs
- RangeValidator.cs
- ZipIOExtraFieldZip64Element.cs
- SessionEndingEventArgs.cs
- VisualBrush.cs
- ApplicationProxyInternal.cs
- CqlLexerHelpers.cs
- SchemaNotation.cs
- TypeResolver.cs
- ConsumerConnectionPointCollection.cs
- PerfCounters.cs
- DataGridSortingEventArgs.cs
- CoreSwitches.cs
- CompilerTypeWithParams.cs
- XmlMemberMapping.cs
- SecurityPolicySection.cs
- DataTrigger.cs
- SystemException.cs
- RepeaterItemCollection.cs
- XomlCompiler.cs
- PnrpPermission.cs
- UIHelper.cs
- SafeSecurityHelper.cs
- SafeNativeMethodsMilCoreApi.cs
- WorkflowMarkupElementEventArgs.cs
- OutputCacheSection.cs
- PathSegmentCollection.cs
- SubqueryRules.cs
- IsolatedStorageFileStream.cs
- PageContentAsyncResult.cs
- GeneralTransformGroup.cs
- ContextMenuStrip.cs
- ScriptResourceAttribute.cs
- MessagePartProtectionMode.cs
- SelectionListComponentEditor.cs
- Transform3DGroup.cs
- ComponentResourceKey.cs
- SR.cs
- smtpconnection.cs
- XPathParser.cs
- RoutedEventHandlerInfo.cs
- MarkerProperties.cs
- MarkupCompilePass2.cs
- SoapTransportImporter.cs
- ListBindingConverter.cs
- __Filters.cs
- ColumnCollection.cs
- DetailsViewModeEventArgs.cs
- SafeArrayRankMismatchException.cs
- TextEditorSpelling.cs
- MetadataReference.cs
- BaseServiceProvider.cs
- OleStrCAMarshaler.cs
- SecurityUtils.cs
- Visual3D.cs
- TextRunTypographyProperties.cs
- ListViewAutomationPeer.cs
- UniqueSet.cs
- _BufferOffsetSize.cs
- EditingCommands.cs
- ToolStripSplitButton.cs
- ClientBuildManagerCallback.cs
- DataContractSerializerSection.cs
- DesignSurfaceCollection.cs
- Double.cs
- WSHttpBindingCollectionElement.cs
- TextParaLineResult.cs
- TryExpression.cs
- EntityContainer.cs
- FontSourceCollection.cs
- ArrayExtension.cs
- QilStrConcat.cs
- HttpRequest.cs
- UnmanagedMarshal.cs
- ClientSettingsProvider.cs
- Panel.cs
- ConfigurationStrings.cs
- OrderPreservingPipeliningSpoolingTask.cs
- EventMappingSettings.cs