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
- TypeBuilderInstantiation.cs
- BinaryQueryOperator.cs
- NonPrimarySelectionGlyph.cs
- FrugalMap.cs
- DataListComponentEditor.cs
- ComplexTypeEmitter.cs
- BooleanConverter.cs
- EntityDataSourceState.cs
- SchemaElementLookUpTableEnumerator.cs
- WebPartTransformerAttribute.cs
- DocumentPaginator.cs
- LineInfo.cs
- SrgsNameValueTag.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Pair.cs
- PasswordRecovery.cs
- StateMachine.cs
- XmlRootAttribute.cs
- Clipboard.cs
- ToolStripLabel.cs
- InkCanvasSelection.cs
- SqlDependency.cs
- DesignerAdapterUtil.cs
- RepeatInfo.cs
- WebBrowserUriTypeConverter.cs
- XmlSchemaSimpleContentExtension.cs
- DebugInfoExpression.cs
- FormParameter.cs
- InputReferenceExpression.cs
- ElementNotEnabledException.cs
- CorrelationService.cs
- DbParameterHelper.cs
- DesignBindingConverter.cs
- PropertyEmitter.cs
- MethodBuilder.cs
- SymLanguageVendor.cs
- LiteralDesigner.cs
- NullableFloatMinMaxAggregationOperator.cs
- DetailsViewDeletedEventArgs.cs
- TrustLevelCollection.cs
- ObjectListCommandsPage.cs
- BatchParser.cs
- RegexReplacement.cs
- SpanIndex.cs
- DataList.cs
- InputLanguageManager.cs
- GridItemPattern.cs
- RepeatButtonAutomationPeer.cs
- TypeNameConverter.cs
- ipaddressinformationcollection.cs
- ProbeDuplex11AsyncResult.cs
- BoundsDrawingContextWalker.cs
- BitmapMetadataBlob.cs
- ipaddressinformationcollection.cs
- BuildProvider.cs
- EventWaitHandle.cs
- IPGlobalProperties.cs
- IgnoreSectionHandler.cs
- DesigntimeLicenseContext.cs
- SafeFindHandle.cs
- DBNull.cs
- Application.cs
- UIElementParaClient.cs
- GeneralTransformGroup.cs
- ContentWrapperAttribute.cs
- LookupNode.cs
- LayoutInformation.cs
- SerializationHelper.cs
- SchemaTypeEmitter.cs
- BitConverter.cs
- TemplateComponentConnector.cs
- StylusPointPropertyUnit.cs
- CodeGeneratorOptions.cs
- DataServiceQueryContinuation.cs
- BaseDataBoundControl.cs
- EntityDesignerBuildProvider.cs
- Line.cs
- TdsParserSafeHandles.cs
- XmlDocumentViewSchema.cs
- UnsafeNativeMethods.cs
- EntityTransaction.cs
- ContainerVisual.cs
- UrlParameterReader.cs
- ObjectQuery_EntitySqlExtensions.cs
- StorageRoot.cs
- HostExecutionContextManager.cs
- StyleSheetComponentEditor.cs
- CLRBindingWorker.cs
- RegexGroupCollection.cs
- HyperLinkField.cs
- DataGridViewCellMouseEventArgs.cs
- PathFigureCollectionConverter.cs
- ToolStripRenderEventArgs.cs
- TypeGenericEnumerableViewSchema.cs
- OracleBFile.cs
- ViewBase.cs
- UpdateCompiler.cs
- BitHelper.cs
- ProtocolsConfiguration.cs
- IndentTextWriter.cs