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
- CommandSet.cs
- UrlMappingCollection.cs
- BinaryQueryOperator.cs
- DataStreams.cs
- ProgramPublisher.cs
- SkewTransform.cs
- NativeConfigurationLoader.cs
- JapaneseLunisolarCalendar.cs
- ClassData.cs
- AddressUtility.cs
- MouseCaptureWithinProperty.cs
- AddInSegmentDirectoryNotFoundException.cs
- SafeNativeMethods.cs
- _Semaphore.cs
- HttpMethodConstraint.cs
- FileAuthorizationModule.cs
- XmlSchemaInferenceException.cs
- IfAction.cs
- Focus.cs
- FontNamesConverter.cs
- Point3DCollection.cs
- CrossContextChannel.cs
- TextEditor.cs
- ObjectAnimationUsingKeyFrames.cs
- DynamicPropertyReader.cs
- HtmlLink.cs
- SoapSchemaMember.cs
- PropertyNames.cs
- DataGridViewAccessibleObject.cs
- HyperLink.cs
- PropertyGridDesigner.cs
- TypeValidationEventArgs.cs
- PropertyDescriptorGridEntry.cs
- VariableAction.cs
- DependencyPropertyValueSerializer.cs
- ObjectQueryState.cs
- EnumerableRowCollection.cs
- MenuCommand.cs
- ToolboxDataAttribute.cs
- UnaryNode.cs
- DbMetaDataCollectionNames.cs
- SignatureDescription.cs
- _ConnectionGroup.cs
- WebDisplayNameAttribute.cs
- ProfileGroupSettings.cs
- NativeMethods.cs
- CroppedBitmap.cs
- ContextStaticAttribute.cs
- ModuleBuilder.cs
- UnaryExpression.cs
- RotateTransform3D.cs
- DeobfuscatingStream.cs
- URLIdentityPermission.cs
- DbProviderServices.cs
- TextSelectionHelper.cs
- BinaryObjectWriter.cs
- XmlSchemaNotation.cs
- ImageListUtils.cs
- PEFileEvidenceFactory.cs
- WaitingCursor.cs
- WorkflowServiceNamespace.cs
- BindableTemplateBuilder.cs
- EventLogTraceListener.cs
- InputLangChangeEvent.cs
- OracleNumber.cs
- PageAdapter.cs
- WebSysDefaultValueAttribute.cs
- DNS.cs
- SByteConverter.cs
- HiddenField.cs
- Processor.cs
- ParameterCollection.cs
- DummyDataSource.cs
- Size3D.cs
- ResourceDictionary.cs
- WebPartDesigner.cs
- DataServiceConfiguration.cs
- BookmarkUndoUnit.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TagPrefixCollection.cs
- MatrixKeyFrameCollection.cs
- UpdatePanelTrigger.cs
- mongolianshape.cs
- ReferencedType.cs
- DynamicValidatorEventArgs.cs
- XPathScanner.cs
- CardSpaceShim.cs
- ApplicationSecurityManager.cs
- SafeLibraryHandle.cs
- ImportContext.cs
- CodeDirectionExpression.cs
- DataGridTablesFactory.cs
- ConfigurationSectionGroup.cs
- DictionarySurrogate.cs
- BitmapScalingModeValidation.cs
- JavaScriptObjectDeserializer.cs
- BindingContext.cs
- AuthorizationRule.cs
- Item.cs
- HttpProtocolReflector.cs