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
- DataGridViewCellConverter.cs
- CuspData.cs
- AssemblyName.cs
- XPathAncestorIterator.cs
- Canvas.cs
- CodeArgumentReferenceExpression.cs
- MimeTypeMapper.cs
- MLangCodePageEncoding.cs
- ScrollProviderWrapper.cs
- EdmScalarPropertyAttribute.cs
- SoapCodeExporter.cs
- DriveInfo.cs
- StructuredTypeEmitter.cs
- PageHandlerFactory.cs
- DefaultPropertyAttribute.cs
- IncomingWebRequestContext.cs
- SqlGenericUtil.cs
- Utils.cs
- StreamingContext.cs
- StyleModeStack.cs
- CodeSubDirectoriesCollection.cs
- GridViewRowPresenter.cs
- ProfileGroupSettings.cs
- DataRelationCollection.cs
- GroupItem.cs
- RepeaterItem.cs
- TypeDescriptionProviderAttribute.cs
- DispatcherExceptionFilterEventArgs.cs
- Listbox.cs
- ManagedFilter.cs
- ProcessRequestAsyncResult.cs
- ParameterCollection.cs
- FileUpload.cs
- _FtpDataStream.cs
- XPathExpr.cs
- BaseValidatorDesigner.cs
- RoutedPropertyChangedEventArgs.cs
- ViewValidator.cs
- WebWorkflowRole.cs
- PictureBox.cs
- EnvironmentPermission.cs
- LoginName.cs
- FixedFindEngine.cs
- Rect.cs
- DelayedRegex.cs
- AttributeTable.cs
- ConstraintEnumerator.cs
- RedirectionProxy.cs
- CompilationSection.cs
- RequestCachePolicyConverter.cs
- ScriptHandlerFactory.cs
- GenerateTemporaryTargetAssembly.cs
- ControlParameter.cs
- WebBrowser.cs
- NoClickablePointException.cs
- Sql8ExpressionRewriter.cs
- TdsValueSetter.cs
- SaveFileDialog.cs
- RuntimeArgumentHandle.cs
- CommandDevice.cs
- SettingsAttributeDictionary.cs
- CellParagraph.cs
- OrderedDictionary.cs
- InternalException.cs
- _AutoWebProxyScriptHelper.cs
- CreateParams.cs
- SHA384.cs
- ToolBarOverflowPanel.cs
- FixedFlowMap.cs
- ProfilePropertyNameValidator.cs
- AppearanceEditorPart.cs
- BitmapEffectInput.cs
- Misc.cs
- XmlSchemaFacet.cs
- Models.cs
- ElementUtil.cs
- CheckedListBox.cs
- ScrollViewerAutomationPeer.cs
- SplitterEvent.cs
- ResourceSetExpression.cs
- HashMembershipCondition.cs
- HttpServerUtilityWrapper.cs
- VarInfo.cs
- ScriptHandlerFactory.cs
- SettingsAttributes.cs
- BStrWrapper.cs
- RenderOptions.cs
- MultiSelector.cs
- SQLMoneyStorage.cs
- XmlChildEnumerator.cs
- DebugView.cs
- ComponentCollection.cs
- Faults.cs
- EncoderParameters.cs
- XmlSchemaSimpleTypeRestriction.cs
- MTConfigUtil.cs
- Code.cs
- SubclassTypeValidatorAttribute.cs
- TextBoxBase.cs
- DefinitionUpdate.cs