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
- ZipIOExtraFieldElement.cs
- TextWriter.cs
- RelativeSource.cs
- RotateTransform3D.cs
- VSWCFServiceContractGenerator.cs
- InternalBufferManager.cs
- EntityKey.cs
- CommonXSendMessage.cs
- ActiveDesignSurfaceEvent.cs
- EventHandlingScope.cs
- SafeReversePInvokeHandle.cs
- WriterOutput.cs
- ServiceOperationDetailViewControl.cs
- SoapElementAttribute.cs
- DeflateStreamAsyncResult.cs
- TlsSspiNegotiation.cs
- DateTimeFormatInfoScanner.cs
- EnvironmentPermission.cs
- Padding.cs
- ThreadLocal.cs
- XsdBuildProvider.cs
- PersonalizableAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- SlotInfo.cs
- WsatConfiguration.cs
- HwndHost.cs
- UserUseLicenseDictionaryLoader.cs
- Codec.cs
- DbProviderFactory.cs
- RawStylusInput.cs
- NetCodeGroup.cs
- PointIndependentAnimationStorage.cs
- PropertyEmitter.cs
- RuleSetReference.cs
- FaultDesigner.cs
- ContainerActivationHelper.cs
- IconHelper.cs
- BinHexEncoder.cs
- ElementHostAutomationPeer.cs
- Html32TextWriter.cs
- ReflectPropertyDescriptor.cs
- DataReceivedEventArgs.cs
- Soap12ProtocolReflector.cs
- ImageBrush.cs
- RoutedEventHandlerInfo.cs
- regiisutil.cs
- DataRowView.cs
- StartFileNameEditor.cs
- ValidatingPropertiesEventArgs.cs
- GetCertificateRequest.cs
- DataRowChangeEvent.cs
- TraceSection.cs
- cookieexception.cs
- columnmapkeybuilder.cs
- PauseStoryboard.cs
- LinqDataSourceContextEventArgs.cs
- ImageProxy.cs
- dtdvalidator.cs
- CompiledXpathExpr.cs
- UntrustedRecipientException.cs
- Identity.cs
- TraceLevelHelper.cs
- SoapHttpTransportImporter.cs
- HelpInfo.cs
- FamilyTypeface.cs
- TableAutomationPeer.cs
- SoapIncludeAttribute.cs
- TreeViewImageIndexConverter.cs
- securitycriticaldataformultiplegetandset.cs
- BoundField.cs
- Transform3DGroup.cs
- TreeNodeCollection.cs
- WmiEventSink.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ExtendedProtectionPolicyElement.cs
- DtrList.cs
- Update.cs
- SQLBytes.cs
- CryptoApi.cs
- CompositeActivityValidator.cs
- Ipv6Element.cs
- DataBindingHandlerAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- NewArrayExpression.cs
- ReaderWriterLock.cs
- SimpleParser.cs
- WebControl.cs
- CodeGen.cs
- OSEnvironmentHelper.cs
- RectAnimationUsingKeyFrames.cs
- RectAnimationUsingKeyFrames.cs
- Int32AnimationBase.cs
- IconBitmapDecoder.cs
- XamlRtfConverter.cs
- MenuStrip.cs
- Matrix3D.cs
- TabRenderer.cs
- PageAsyncTaskManager.cs
- RequestResizeEvent.cs
- PreviewKeyDownEventArgs.cs