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
- ProtocolsSection.cs
- LoginCancelEventArgs.cs
- AuthorizationRule.cs
- DataRelationPropertyDescriptor.cs
- EntityDataSourceChangedEventArgs.cs
- DivideByZeroException.cs
- Margins.cs
- StructuralComparisons.cs
- PrinterUnitConvert.cs
- ValidateNames.cs
- PageRequestManager.cs
- DictionaryBase.cs
- CreateUserErrorEventArgs.cs
- InfocardClientCredentials.cs
- ObjRef.cs
- Permission.cs
- HashSet.cs
- HttpAsyncResult.cs
- DataService.cs
- AnnotationAdorner.cs
- MailMessageEventArgs.cs
- WinEventQueueItem.cs
- XmlTextEncoder.cs
- FormViewAutoFormat.cs
- HttpConfigurationContext.cs
- HwndProxyElementProvider.cs
- ProxyWebPart.cs
- DataConnectionHelper.cs
- TickBar.cs
- Error.cs
- SqlExpressionNullability.cs
- TileBrush.cs
- GridViewItemAutomationPeer.cs
- BuildProviderAppliesToAttribute.cs
- InheritedPropertyChangedEventArgs.cs
- DynamicMethod.cs
- AnonymousIdentificationSection.cs
- OutOfProcStateClientManager.cs
- StrongNamePublicKeyBlob.cs
- CodeBinaryOperatorExpression.cs
- TreeViewImageKeyConverter.cs
- TemplateBamlRecordReader.cs
- RegisteredExpandoAttribute.cs
- BitmapImage.cs
- TextEffect.cs
- IdleTimeoutMonitor.cs
- CatalogZoneAutoFormat.cs
- ExclusiveTcpListener.cs
- ParameterBuilder.cs
- EditorPart.cs
- EmptyControlCollection.cs
- PeerApplicationLaunchInfo.cs
- InputLangChangeEvent.cs
- SecurityContext.cs
- WindowsUpDown.cs
- MenuItemBinding.cs
- ToolStripItemEventArgs.cs
- ShaderEffect.cs
- Configuration.cs
- OleDbRowUpdatedEvent.cs
- BuildProvider.cs
- SqlClientWrapperSmiStreamChars.cs
- ButtonChrome.cs
- IISMapPath.cs
- FilteredDataSetHelper.cs
- followingquery.cs
- PasswordRecovery.cs
- ChannelServices.cs
- ComponentDispatcher.cs
- coordinator.cs
- SpnEndpointIdentity.cs
- PointValueSerializer.cs
- LongCountAggregationOperator.cs
- DupHandleConnectionReader.cs
- EqualityComparer.cs
- XmlCharacterData.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ValueQuery.cs
- XmlNullResolver.cs
- CatalogPart.cs
- GreenMethods.cs
- ExpressionBindings.cs
- TailCallAnalyzer.cs
- HMACSHA512.cs
- InvalidAsynchronousStateException.cs
- PackagePartCollection.cs
- BaseProcessor.cs
- IpcServerChannel.cs
- TableItemPatternIdentifiers.cs
- GroupStyle.cs
- AudioStateChangedEventArgs.cs
- Page.cs
- FrameworkElementFactory.cs
- PageCodeDomTreeGenerator.cs
- XmlException.cs
- CommunicationObjectAbortedException.cs
- Int64KeyFrameCollection.cs
- LOSFormatter.cs
- WebPartTransformer.cs
- Style.cs