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
- AsyncDataRequest.cs
- HttpInputStream.cs
- PropertyEmitterBase.cs
- WebWorkflowRole.cs
- XmlSerializableServices.cs
- ToolStripContentPanelRenderEventArgs.cs
- Vector3D.cs
- DisplayInformation.cs
- FlagsAttribute.cs
- PageParser.cs
- Parameter.cs
- PartDesigner.cs
- SvcMapFileSerializer.cs
- FunctionDetailsReader.cs
- SvcMapFileSerializer.cs
- LayoutSettings.cs
- WebPartDeleteVerb.cs
- JsonEnumDataContract.cs
- ExpandCollapseProviderWrapper.cs
- Column.cs
- DataColumnMapping.cs
- MouseGesture.cs
- DockAndAnchorLayout.cs
- CroppedBitmap.cs
- ProfilePropertySettingsCollection.cs
- TimersDescriptionAttribute.cs
- DataGridColumnCollection.cs
- TrackingMemoryStreamFactory.cs
- CmsInterop.cs
- SortExpressionBuilder.cs
- CachedFontFamily.cs
- CharacterString.cs
- oledbconnectionstring.cs
- AudioBase.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- TextCompositionManager.cs
- ResourceDescriptionAttribute.cs
- XpsFixedDocumentReaderWriter.cs
- SecUtil.cs
- AddInAttribute.cs
- dsa.cs
- ClientApiGenerator.cs
- XmlSchemaSimpleContentExtension.cs
- ApplicationSettingsBase.cs
- FaultImportOptions.cs
- ImageKeyConverter.cs
- TimeSpanValidator.cs
- RemotingException.cs
- securitymgrsite.cs
- GenericWebPart.cs
- DaylightTime.cs
- UmAlQuraCalendar.cs
- ReflectEventDescriptor.cs
- LineServicesRun.cs
- ByteStreamGeometryContext.cs
- Preprocessor.cs
- SystemWebCachingSectionGroup.cs
- ByteRangeDownloader.cs
- TrackPointCollection.cs
- TypeUtil.cs
- ProxyWebPartConnectionCollection.cs
- recordstate.cs
- TextSpan.cs
- TableLayoutPanel.cs
- InstanceValue.cs
- OdbcCommandBuilder.cs
- FileUtil.cs
- DefaultIfEmptyQueryOperator.cs
- NavigateUrlConverter.cs
- WorkflowOwnershipException.cs
- NativeBuffer.cs
- DesignerLoader.cs
- Component.cs
- RulePatternOps.cs
- IgnoreSectionHandler.cs
- IdentifierCollection.cs
- XmlEntityReference.cs
- TemplateControl.cs
- InternalControlCollection.cs
- FramingDecoders.cs
- LambdaCompiler.Expressions.cs
- ServiceHostingEnvironment.cs
- DataGrid.cs
- Publisher.cs
- HttpHandlersSection.cs
- StartUpEventArgs.cs
- GetMemberBinder.cs
- BrowserCapabilitiesCompiler.cs
- FilteredReadOnlyMetadataCollection.cs
- PathSegment.cs
- WorkerRequest.cs
- ResourceProviderFactory.cs
- NullableIntMinMaxAggregationOperator.cs
- TaskExtensions.cs
- ValidationHelpers.cs
- ItemsPanelTemplate.cs
- XPathDocumentIterator.cs
- TrackingProfileCache.cs
- DetailsViewModeEventArgs.cs
- SerTrace.cs