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
- AutoResetEvent.cs
- ObjectManager.cs
- AudioDeviceOut.cs
- XmlCountingReader.cs
- SafeRsaProviderHandle.cs
- AutomationProperties.cs
- ProfilePropertyNameValidator.cs
- TextBoxDesigner.cs
- TypeUnloadedException.cs
- EntryPointNotFoundException.cs
- DateTimeSerializationSection.cs
- EncryptedType.cs
- SafeCryptoHandles.cs
- DiscriminatorMap.cs
- ConnectionManagementElement.cs
- HotCommands.cs
- SessionParameter.cs
- FigureHelper.cs
- DependencyPropertyKind.cs
- FrameworkRichTextComposition.cs
- DataGridParentRows.cs
- TextElementAutomationPeer.cs
- DisplayMemberTemplateSelector.cs
- SafeMILHandle.cs
- XmlCustomFormatter.cs
- AttachedPropertyBrowsableAttribute.cs
- Control.cs
- DirectoryLocalQuery.cs
- ColumnCollection.cs
- TextEditorMouse.cs
- MessageQueueAccessControlEntry.cs
- ReflectionUtil.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GeometryDrawing.cs
- DataGridViewRowCollection.cs
- Types.cs
- TextSelectionHighlightLayer.cs
- TextPenaltyModule.cs
- FontNamesConverter.cs
- DesignerAttributeInfo.cs
- DataSourceSelectArguments.cs
- CellIdBoolean.cs
- RepeaterCommandEventArgs.cs
- DbInsertCommandTree.cs
- PrivilegeNotHeldException.cs
- MissingSatelliteAssemblyException.cs
- SecurityKeyIdentifierClause.cs
- TraceUtility.cs
- BooleanSwitch.cs
- MemberRestriction.cs
- PowerStatus.cs
- List.cs
- ItemMap.cs
- OwnerDrawPropertyBag.cs
- GCHandleCookieTable.cs
- RouteItem.cs
- SubpageParaClient.cs
- HMACSHA1.cs
- CaseExpr.cs
- SafeMILHandleMemoryPressure.cs
- WindowsRichEdit.cs
- WeakReference.cs
- ToolTip.cs
- OletxEnlistment.cs
- ResourceAttributes.cs
- ExpressionHelper.cs
- CodeNamespaceImport.cs
- DbConnectionStringCommon.cs
- BrowserCapabilitiesFactoryBase.cs
- DurationConverter.cs
- Char.cs
- ChtmlMobileTextWriter.cs
- DependencyPropertyHelper.cs
- DataGridViewCellFormattingEventArgs.cs
- DaylightTime.cs
- SymLanguageVendor.cs
- PageContentAsyncResult.cs
- MessageQuerySet.cs
- SystemIPv6InterfaceProperties.cs
- TypefaceMap.cs
- XsltSettings.cs
- Margins.cs
- ReferencedType.cs
- StatusBarPanelClickEvent.cs
- SqlDataSourceCommandEventArgs.cs
- ListItem.cs
- MenuItem.cs
- DriveNotFoundException.cs
- DesignBinding.cs
- DataGridViewTextBoxEditingControl.cs
- StorageMappingFragment.cs
- EventsTab.cs
- FtpWebRequest.cs
- complextypematerializer.cs
- MultitargetUtil.cs
- IBuiltInEvidence.cs
- TypeHelpers.cs
- VirtualPathProvider.cs
- PreApplicationStartMethodAttribute.cs
- HMACSHA1.cs