Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextModifier.cs / 1305600 / TextModifier.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextModifier.cs // // Contents: Text modification API // // Spec: http://avalon/text/DesignDocsAndSpecs/Text%20Formatting%20API.doc // // Created: 12-5-2004 Niklas Borson (niklasb) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; using System.Windows.Media; namespace System.Windows.Media.TextFormatting { ////// Specialized text run used to modify properties of text runs in its scope. /// The scope extends to the next matching EndOfSegment text run (matching /// because text modifiers may be nested), or to the next EndOfParagraph. /// public abstract class TextModifier : TextRun { ////// Reference to character buffer /// public sealed override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(); } } ////// Modifies the properties of a text run. /// /// Properties of a text run or the return value of /// ModifyProperties for a nested text modifier. ///Returns the actual text run properties to be used for formatting, /// subject to further modification by text modifiers at outer scopes. public abstract TextRunProperties ModifyProperties(TextRunProperties properties); ////// TextFormatter to ask whether directional embedding is /// represented by this modifier. /// public abstract bool HasDirectionalEmbedding {get; } ////// TextFormatter to get the flow direction value for directional /// embedding. The value is ignored unless the property /// HasDirectionalEmbedding returns true. /// public abstract FlowDirection FlowDirection {get; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextModifier.cs // // Contents: Text modification API // // Spec: http://avalon/text/DesignDocsAndSpecs/Text%20Formatting%20API.doc // // Created: 12-5-2004 Niklas Borson (niklasb) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; using System.Windows.Media; namespace System.Windows.Media.TextFormatting { ////// Specialized text run used to modify properties of text runs in its scope. /// The scope extends to the next matching EndOfSegment text run (matching /// because text modifiers may be nested), or to the next EndOfParagraph. /// public abstract class TextModifier : TextRun { ////// Reference to character buffer /// public sealed override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(); } } ////// Modifies the properties of a text run. /// /// Properties of a text run or the return value of /// ModifyProperties for a nested text modifier. ///Returns the actual text run properties to be used for formatting, /// subject to further modification by text modifiers at outer scopes. public abstract TextRunProperties ModifyProperties(TextRunProperties properties); ////// TextFormatter to ask whether directional embedding is /// represented by this modifier. /// public abstract bool HasDirectionalEmbedding {get; } ////// TextFormatter to get the flow direction value for directional /// embedding. The value is ignored unless the property /// HasDirectionalEmbedding returns true. /// public abstract FlowDirection FlowDirection {get; } } } // 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
- ServiceSecurityAuditBehavior.cs
- PrimitiveDataContract.cs
- PixelFormats.cs
- HybridDictionary.cs
- LineServices.cs
- CommandLibraryHelper.cs
- SqlDuplicator.cs
- Currency.cs
- EntryWrittenEventArgs.cs
- CharEnumerator.cs
- DefinitionBase.cs
- HtmlInputButton.cs
- X509ClientCertificateAuthentication.cs
- ThreadPool.cs
- ExpressionBuilder.cs
- CodeTypeOfExpression.cs
- DefaultTextStoreTextComposition.cs
- DirectoryObjectSecurity.cs
- Symbol.cs
- LocatorPart.cs
- DataListItemCollection.cs
- DesignSurfaceManager.cs
- MessagePropertyFilter.cs
- TargetFrameworkAttribute.cs
- PageThemeCodeDomTreeGenerator.cs
- BulletDecorator.cs
- BamlCollectionHolder.cs
- ConfigurationLoaderException.cs
- DurableTimerExtension.cs
- TypeConverterHelper.cs
- IResourceProvider.cs
- SapiInterop.cs
- QilStrConcatenator.cs
- DashStyle.cs
- MobileContainerDesigner.cs
- DesignerForm.cs
- NominalTypeEliminator.cs
- IUnknownConstantAttribute.cs
- BlurEffect.cs
- DataSourceGeneratorException.cs
- DataContractSerializerServiceBehavior.cs
- CopyNodeSetAction.cs
- TemplateComponentConnector.cs
- ComNativeDescriptor.cs
- IteratorFilter.cs
- TailPinnedEventArgs.cs
- DescendentsWalkerBase.cs
- CacheMemory.cs
- DesignerLoader.cs
- OdbcTransaction.cs
- BrowserCapabilitiesCompiler.cs
- MergeLocalizationDirectives.cs
- Icon.cs
- WebUtil.cs
- DecoderBestFitFallback.cs
- RealProxy.cs
- XmlBoundElement.cs
- IsolatedStorageException.cs
- SqlException.cs
- XamlBrushSerializer.cs
- VersionedStream.cs
- XmlSchemaObject.cs
- NoneExcludedImageIndexConverter.cs
- SoapInteropTypes.cs
- DataObjectMethodAttribute.cs
- InvokeWebServiceDesigner.cs
- CompiledXpathExpr.cs
- Thickness.cs
- MouseGestureConverter.cs
- HwndKeyboardInputProvider.cs
- ResourceDefaultValueAttribute.cs
- TreeViewBindingsEditor.cs
- ReaderWriterLock.cs
- SessionState.cs
- RectValueSerializer.cs
- SettingsPropertyNotFoundException.cs
- ActivityTrace.cs
- ArraySubsetEnumerator.cs
- DesignerCalendarAdapter.cs
- RequestResizeEvent.cs
- BinaryMethodMessage.cs
- OutputCacheModule.cs
- HtmlString.cs
- ApplicationDirectoryMembershipCondition.cs
- GregorianCalendarHelper.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ContextQuery.cs
- categoryentry.cs
- RepeatBehaviorConverter.cs
- RuleAttributes.cs
- wgx_render.cs
- CodeExpressionStatement.cs
- XmlConvert.cs
- SessionEndingCancelEventArgs.cs
- LinearGradientBrush.cs
- LineServicesCallbacks.cs
- ResXResourceSet.cs
- SafeBitVector32.cs
- CapabilitiesSection.cs
- XmlDataImplementation.cs