Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- QilLiteral.cs
- WebPartConnectionCollection.cs
- VirtualPath.cs
- EdmSchemaError.cs
- WorkerRequest.cs
- UmAlQuraCalendar.cs
- HttpRawResponse.cs
- BaseAsyncResult.cs
- Win32.cs
- KeyEvent.cs
- RefExpr.cs
- DataGridViewControlCollection.cs
- FormViewPagerRow.cs
- DataGridViewCellMouseEventArgs.cs
- TypeLibConverter.cs
- FloaterBaseParagraph.cs
- Metafile.cs
- ScriptDescriptor.cs
- EventLog.cs
- CodeTypeConstructor.cs
- ResourceAssociationSet.cs
- Helpers.cs
- ArgumentOutOfRangeException.cs
- PasswordDeriveBytes.cs
- XmlILAnnotation.cs
- ActivityDesigner.cs
- CharacterMetrics.cs
- LZCodec.cs
- HMACMD5.cs
- PeerServiceMessageContracts.cs
- LogicalMethodInfo.cs
- OdbcReferenceCollection.cs
- MobileControlsSectionHelper.cs
- WorkflowView.cs
- DynamicMetaObjectBinder.cs
- PrePostDescendentsWalker.cs
- Predicate.cs
- BitHelper.cs
- ContextQuery.cs
- OdbcConnectionString.cs
- WorkflowServiceAttributesTypeConverter.cs
- DesignTimeData.cs
- FaultBookmark.cs
- EntitySetBase.cs
- XmlDataSourceNodeDescriptor.cs
- ChannelPoolSettingsElement.cs
- ActivationServices.cs
- BindingOperations.cs
- ComboBoxRenderer.cs
- BinaryFormatterSinks.cs
- PersonalizationProviderHelper.cs
- Console.cs
- RectAnimationClockResource.cs
- TextDecorationCollection.cs
- PermissionSetEnumerator.cs
- RankException.cs
- SqlSupersetValidator.cs
- PlacementWorkspace.cs
- PagesSection.cs
- WsatServiceCertificate.cs
- HwndHostAutomationPeer.cs
- Compiler.cs
- HelpKeywordAttribute.cs
- InvokeSchedule.cs
- Expander.cs
- X509WindowsSecurityToken.cs
- ContentControl.cs
- SerializationSectionGroup.cs
- EffectiveValueEntry.cs
- ParserOptions.cs
- XmlNodeReader.cs
- XmlValidatingReaderImpl.cs
- ZipIOCentralDirectoryBlock.cs
- SerializationTrace.cs
- MarkupWriter.cs
- TemplateManager.cs
- SubMenuStyle.cs
- TextBox.cs
- UserPreferenceChangingEventArgs.cs
- _NegoState.cs
- SpotLight.cs
- ProxyFragment.cs
- WebSysDisplayNameAttribute.cs
- VirtualDirectoryMapping.cs
- StyleSelector.cs
- XmlSchemaDatatype.cs
- RootBrowserWindow.cs
- Hex.cs
- PagesChangedEventArgs.cs
- WSHttpBindingCollectionElement.cs
- InkCollectionBehavior.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- _NTAuthentication.cs
- ScriptRef.cs
- Funcletizer.cs
- WrappedReader.cs
- DeleteWorkflowOwnerCommand.cs
- VersionedStream.cs
- DbgCompiler.cs
- basecomparevalidator.cs