Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextModifier.cs / 1 / 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
- XamlFilter.cs
- DependentTransaction.cs
- SecurityCredentialsManager.cs
- ContextItemManager.cs
- dataobject.cs
- WpfXamlLoader.cs
- SqlCacheDependency.cs
- RegexNode.cs
- userdatakeys.cs
- validationstate.cs
- DeflateStream.cs
- HideDisabledControlAdapter.cs
- EnterpriseServicesHelper.cs
- SettingsSection.cs
- ContentIterators.cs
- EventBookmark.cs
- BasePattern.cs
- DBDataPermission.cs
- DocumentXmlWriter.cs
- IApplicationTrustManager.cs
- TraceShell.cs
- EmptyReadOnlyDictionaryInternal.cs
- ComboBoxAutomationPeer.cs
- WebServicesSection.cs
- XmlSiteMapProvider.cs
- VisualBrush.cs
- ConfigurationManagerInternal.cs
- FontStretches.cs
- VolatileEnlistmentMultiplexing.cs
- NetworkInformationException.cs
- ParenthesizePropertyNameAttribute.cs
- HelloOperationCD1AsyncResult.cs
- AnnotationAdorner.cs
- RedirectionProxy.cs
- ExpressionBuilder.cs
- ProgressChangedEventArgs.cs
- RootCodeDomSerializer.cs
- Vector3DAnimationBase.cs
- ExpressionConverter.cs
- SqlProviderServices.cs
- OpCopier.cs
- XPathNode.cs
- HttpGetProtocolImporter.cs
- GroupBox.cs
- Comparer.cs
- Misc.cs
- SqlConnectionPoolProviderInfo.cs
- SwitchElementsCollection.cs
- SqlRowUpdatedEvent.cs
- Compiler.cs
- BinHexDecoder.cs
- CodePrimitiveExpression.cs
- PagesSection.cs
- MetadataItem.cs
- ValidatingPropertiesEventArgs.cs
- DataGridViewColumnCollectionDialog.cs
- EncodingTable.cs
- GeneralTransform3DGroup.cs
- NotImplementedException.cs
- SelectionItemPattern.cs
- RSAOAEPKeyExchangeFormatter.cs
- ScriptReferenceEventArgs.cs
- ChangePassword.cs
- ToolBarButton.cs
- DataSourceControl.cs
- DiscoveryInnerClientAdhoc11.cs
- DbgUtil.cs
- SoapProtocolImporter.cs
- GestureRecognitionResult.cs
- MeshGeometry3D.cs
- NativeObjectSecurity.cs
- CellParagraph.cs
- RemoteWebConfigurationHostStream.cs
- TableChangeProcessor.cs
- BamlStream.cs
- Stacktrace.cs
- Profiler.cs
- ComponentGuaranteesAttribute.cs
- XmlNodeList.cs
- CultureInfoConverter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- VirtualizingStackPanel.cs
- SatelliteContractVersionAttribute.cs
- ScriptManagerProxy.cs
- selecteditemcollection.cs
- CodeDirectiveCollection.cs
- CodeTypeReferenceExpression.cs
- EDesignUtil.cs
- SemanticAnalyzer.cs
- WebPartDisplayModeCancelEventArgs.cs
- SchemaCreator.cs
- LoadGrammarCompletedEventArgs.cs
- WpfWebRequestHelper.cs
- StrokeDescriptor.cs
- SerializationEventsCache.cs
- UnsafeNativeMethods.cs
- XsltLibrary.cs
- HttpApplicationFactory.cs
- HttpVersion.cs
- Brush.cs