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
- HitTestResult.cs
- XmlnsCache.cs
- XmlSchemaSet.cs
- QuadraticBezierSegment.cs
- PersistChildrenAttribute.cs
- DataBinder.cs
- EditorPart.cs
- RolePrincipal.cs
- DBDataPermissionAttribute.cs
- PlatformNotSupportedException.cs
- DataGridViewSelectedColumnCollection.cs
- DeferrableContentConverter.cs
- ExecutionContext.cs
- DataGridSortCommandEventArgs.cs
- EFColumnProvider.cs
- CallbackHandler.cs
- HtmlInputSubmit.cs
- ToolStripItemRenderEventArgs.cs
- ListenerAdapter.cs
- Predicate.cs
- EdmScalarPropertyAttribute.cs
- RelationshipEndMember.cs
- DesignTimeVisibleAttribute.cs
- FormViewActionList.cs
- FunctionNode.cs
- UIPropertyMetadata.cs
- DateTimeFormatInfo.cs
- CustomLineCap.cs
- WebPartConnectionsCancelVerb.cs
- SelectionPatternIdentifiers.cs
- ArgumentOutOfRangeException.cs
- CompositionTarget.cs
- TableLayoutPanelResizeGlyph.cs
- BufferedOutputStream.cs
- WebServiceTypeData.cs
- SchemaTableColumn.cs
- Brush.cs
- QueryInterceptorAttribute.cs
- TextClipboardData.cs
- XmlUrlEditor.cs
- TableParaClient.cs
- HashStream.cs
- CodeObjectCreateExpression.cs
- ExclusiveNamedPipeTransportManager.cs
- QilParameter.cs
- GeneratedCodeAttribute.cs
- OleStrCAMarshaler.cs
- SerialPort.cs
- ImageMap.cs
- XmlDictionaryString.cs
- ObjectPersistData.cs
- TextTreeRootTextBlock.cs
- SmtpNtlmAuthenticationModule.cs
- ApplyImportsAction.cs
- FixedSOMLineCollection.cs
- SemaphoreFullException.cs
- XmlChildEnumerator.cs
- LocalizabilityAttribute.cs
- DbMetaDataCollectionNames.cs
- CompilationRelaxations.cs
- DictionaryItemsCollection.cs
- ArraySortHelper.cs
- Speller.cs
- StartUpEventArgs.cs
- ColorInterpolationModeValidation.cs
- StyleSelector.cs
- TextWriterTraceListener.cs
- HtmlHistory.cs
- PolicyLevel.cs
- HealthMonitoringSection.cs
- basenumberconverter.cs
- AtomicFile.cs
- DtrList.cs
- SID.cs
- OutputWindow.cs
- KeyConstraint.cs
- DesignerForm.cs
- XXXInfos.cs
- GridEntryCollection.cs
- Control.cs
- UIElementIsland.cs
- ViewValidator.cs
- DocumentOutline.cs
- HostingEnvironmentException.cs
- ObjectToIdCache.cs
- BackgroundFormatInfo.cs
- InvalidFilterCriteriaException.cs
- NativeMethods.cs
- DefaultMemberAttribute.cs
- DrawingCollection.cs
- SoapAttributeAttribute.cs
- GiveFeedbackEventArgs.cs
- SelectedDatesCollection.cs
- X509UI.cs
- BaseCodePageEncoding.cs
- DynamicValueConverter.cs
- SymbolTable.cs
- DrawingServices.cs
- UserMapPath.cs
- AttachmentCollection.cs