Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DeferredRunTextReference.cs / 1305600 / DeferredRunTextReference.cs
//---------------------------------------------------------------------------- // // File: DeferredRunTextReference.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 DeferredRunTextReference : DeferredReference { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal DeferredRunTextReference(Run run) { _run = run; } #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(_run.ContentStart, _run.ContentEnd); } // Gets the type of the value it represents internal override Type GetValueType() { return typeof(string); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // Run mapped to this object. private readonly Run _run; #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
- DesignColumn.cs
- EmptyControlCollection.cs
- SymDocumentType.cs
- Storyboard.cs
- ClockGroup.cs
- SchemaEntity.cs
- ImageList.cs
- ContractCodeDomInfo.cs
- MSAANativeProvider.cs
- BinaryFormatterWriter.cs
- connectionpool.cs
- Quaternion.cs
- ReadOnlyDictionary.cs
- ClassHandlersStore.cs
- RegexCapture.cs
- smtppermission.cs
- IteratorAsyncResult.cs
- ProvidePropertyAttribute.cs
- WebPartHeaderCloseVerb.cs
- LabelDesigner.cs
- HostedHttpTransportManager.cs
- ZipIOCentralDirectoryFileHeader.cs
- AdCreatedEventArgs.cs
- SqlRowUpdatingEvent.cs
- ScrollBar.cs
- WebScriptMetadataFormatter.cs
- WorkflowElementDialog.cs
- EventHandlersStore.cs
- XsltCompileContext.cs
- WindowsTokenRoleProvider.cs
- XmlAttributeHolder.cs
- ParseElement.cs
- Pool.cs
- SchemaName.cs
- TextRangeAdaptor.cs
- DocumentGridContextMenu.cs
- CodeStatementCollection.cs
- TokenizerHelper.cs
- AspProxy.cs
- HMACSHA256.cs
- RenderDataDrawingContext.cs
- UndirectedGraph.cs
- TypeDependencyAttribute.cs
- LinkLabelLinkClickedEvent.cs
- RegisteredArrayDeclaration.cs
- ErrorHandlerFaultInfo.cs
- CodeTypeReferenceCollection.cs
- ConfigXmlWhitespace.cs
- CodeTypeParameter.cs
- ObjectDataSourceSelectingEventArgs.cs
- StatusBarDrawItemEvent.cs
- Header.cs
- StaticTextPointer.cs
- MLangCodePageEncoding.cs
- PeerInputChannel.cs
- HtmlProps.cs
- TransformerTypeCollection.cs
- FontFamilyIdentifier.cs
- Pens.cs
- SystemEvents.cs
- FixUp.cs
- WebBrowser.cs
- ExceptionValidationRule.cs
- X500Name.cs
- IsolatedStorageFile.cs
- ProbeMatchesCD1.cs
- TiffBitmapDecoder.cs
- GroupBox.cs
- FontWeight.cs
- AssemblyAttributes.cs
- DependencyPropertyKind.cs
- SplineKeyFrames.cs
- EventSetterHandlerConverter.cs
- ColumnMap.cs
- SessionStateSection.cs
- SimpleNameService.cs
- HelpKeywordAttribute.cs
- Errors.cs
- UnsafeNativeMethods.cs
- SqlFlattener.cs
- DocumentApplicationDocumentViewer.cs
- TextServicesLoader.cs
- DeflateEmulationStream.cs
- HttpApplication.cs
- PropertyIdentifier.cs
- CipherData.cs
- ArrangedElementCollection.cs
- UrlAuthorizationModule.cs
- NativeMethods.cs
- PreviousTrackingServiceAttribute.cs
- PtsCache.cs
- ProxyWebPartManager.cs
- HttpModulesSection.cs
- Vector3DCollection.cs
- LinkTarget.cs
- BitmapEffectvisualstate.cs
- BuildDependencySet.cs
- CipherData.cs
- QilSortKey.cs
- LayoutManager.cs