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
- RelationshipEndMember.cs
- BaseResourcesBuildProvider.cs
- GeometryConverter.cs
- ToggleButtonAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- InputLanguageProfileNotifySink.cs
- BuildManagerHost.cs
- TextSchema.cs
- ControlCachePolicy.cs
- BrushValueSerializer.cs
- TypeDescriptor.cs
- ReadOnlyActivityGlyph.cs
- PageAsyncTaskManager.cs
- ScriptResourceHandler.cs
- ErrorFormatter.cs
- SystemFonts.cs
- NGCUIElementCollectionSerializerAsync.cs
- SqlCacheDependencySection.cs
- CapabilitiesSection.cs
- XmlSchemaAnnotation.cs
- SamlAttribute.cs
- VsPropertyGrid.cs
- XamlLoadErrorInfo.cs
- X509WindowsSecurityToken.cs
- ResourceProviderFactory.cs
- DropShadowEffect.cs
- DataGridViewCellStateChangedEventArgs.cs
- RegexBoyerMoore.cs
- XmlCDATASection.cs
- ReflectPropertyDescriptor.cs
- ValueType.cs
- QuaternionAnimation.cs
- XsdDateTime.cs
- HandlerMappingMemo.cs
- dataprotectionpermissionattribute.cs
- Encoder.cs
- HtmlInputRadioButton.cs
- EntityParameter.cs
- TypeLoadException.cs
- UniformGrid.cs
- ClientScriptManagerWrapper.cs
- FeatureSupport.cs
- NullReferenceException.cs
- PropertyMapper.cs
- InstanceData.cs
- SourceLineInfo.cs
- AffineTransform3D.cs
- DiscoveryMessageSequenceGenerator.cs
- MultiView.cs
- EntityRecordInfo.cs
- BitmapEffectGeneralTransform.cs
- TemplateBindingExpression.cs
- CfgSemanticTag.cs
- ValidationUtility.cs
- DbExpressionVisitor_TResultType.cs
- AutomationIdentifier.cs
- SmiMetaDataProperty.cs
- CharEntityEncoderFallback.cs
- AxisAngleRotation3D.cs
- PropertyGridCommands.cs
- SafeIUnknown.cs
- MappingSource.cs
- SystemPens.cs
- CompilerScopeManager.cs
- SqlConnectionStringBuilder.cs
- SetStateDesigner.cs
- MailHeaderInfo.cs
- HandleDictionary.cs
- InstallerTypeAttribute.cs
- PropertyPanel.cs
- CompareInfo.cs
- TemplateControl.cs
- TabControl.cs
- XsdDataContractImporter.cs
- AtomEntry.cs
- OneOfConst.cs
- LocatorPart.cs
- ServiceDeploymentInfo.cs
- CounterSample.cs
- StructuralType.cs
- DownloadProgressEventArgs.cs
- PrimitiveSchema.cs
- UrlEncodedParameterWriter.cs
- NotifyInputEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- RestClientProxyHandler.cs
- SqlRowUpdatingEvent.cs
- __TransparentProxy.cs
- SiteOfOriginPart.cs
- ToolStripPanelDesigner.cs
- ViewStateException.cs
- CollectionChangedEventManager.cs
- IgnoreFileBuildProvider.cs
- SystemIPv4InterfaceProperties.cs
- ExpressionDumper.cs
- XmlSchemaSimpleContent.cs
- Stacktrace.cs
- ClientSettings.cs
- Color.cs
- Maps.cs