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
- Evaluator.cs
- XamlNamespaceHelper.cs
- TimeSpan.cs
- WeakEventTable.cs
- SafeHGlobalHandleCritical.cs
- MessageSecurityVersion.cs
- SqlNodeTypeOperators.cs
- _SslSessionsCache.cs
- InputScopeConverter.cs
- SafeBuffer.cs
- HijriCalendar.cs
- SqlDataSourceConfigureSelectPanel.cs
- SoapTypeAttribute.cs
- HyperLinkStyle.cs
- mediaeventargs.cs
- DeadCharTextComposition.cs
- Timer.cs
- MetadataItemEmitter.cs
- ToolStripSplitButton.cs
- SplitterEvent.cs
- EnumMemberAttribute.cs
- UriScheme.cs
- TraceFilter.cs
- ApplicationSecurityInfo.cs
- KeyManager.cs
- Bidi.cs
- DescendentsWalker.cs
- EditCommandColumn.cs
- BoundPropertyEntry.cs
- WorkflowRuntimeService.cs
- PocoPropertyAccessorStrategy.cs
- EndOfStreamException.cs
- InitializationEventAttribute.cs
- ImportedNamespaceContextItem.cs
- Rotation3D.cs
- SqlDependency.cs
- XmlBinaryReader.cs
- SizeF.cs
- ResolveNameEventArgs.cs
- ProcessHostMapPath.cs
- CaseInsensitiveComparer.cs
- XhtmlStyleClass.cs
- GPRECTF.cs
- AxisAngleRotation3D.cs
- XPathParser.cs
- HyperLink.cs
- UnauthorizedWebPart.cs
- PeerPresenceInfo.cs
- OutKeywords.cs
- SubMenuStyle.cs
- ZipPackage.cs
- SpnegoTokenAuthenticator.cs
- UIElementPropertyUndoUnit.cs
- DrawingContextDrawingContextWalker.cs
- HelpKeywordAttribute.cs
- TimeStampChecker.cs
- ViewCellRelation.cs
- WebBrowsableAttribute.cs
- SessionEndedEventArgs.cs
- CodeConstructor.cs
- EntityDataSourceContainerNameItem.cs
- TextTreeTextNode.cs
- EventData.cs
- EventProviderBase.cs
- SRef.cs
- LineSegment.cs
- PagePropertiesChangingEventArgs.cs
- objectresult_tresulttype.cs
- CustomCategoryAttribute.cs
- EntityDataSourceColumn.cs
- BamlLocalizableResource.cs
- RuleSetCollection.cs
- MappingException.cs
- DataSourceSelectArguments.cs
- KnownBoxes.cs
- MimeXmlReflector.cs
- GroupBox.cs
- StyleModeStack.cs
- OracleParameterBinding.cs
- Int32RectConverter.cs
- CustomError.cs
- DataKey.cs
- Style.cs
- AffineTransform3D.cs
- CodeDelegateCreateExpression.cs
- Bitmap.cs
- ExpressionEditorAttribute.cs
- CodeBlockBuilder.cs
- SqlIdentifier.cs
- RequestNavigateEventArgs.cs
- ConstraintManager.cs
- HtmlEmptyTagControlBuilder.cs
- ErrorFormatterPage.cs
- ProcessHostMapPath.cs
- StringUtil.cs
- BaseWebProxyFinder.cs
- Group.cs
- DataKeyCollection.cs
- ChangePassword.cs
- CharConverter.cs