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
- DrawListViewItemEventArgs.cs
- FormViewUpdatedEventArgs.cs
- SQLInt64Storage.cs
- OleDbMetaDataFactory.cs
- TextViewBase.cs
- DBDataPermissionAttribute.cs
- UInt32Converter.cs
- CSharpCodeProvider.cs
- PeerContact.cs
- GridViewCellAutomationPeer.cs
- ServiceDiscoveryElement.cs
- EntityDataSourceWizardForm.cs
- LiteralControl.cs
- WindowInteropHelper.cs
- FormDocumentDesigner.cs
- XmlRawWriterWrapper.cs
- ClientTarget.cs
- LocatorBase.cs
- RootAction.cs
- ChangesetResponse.cs
- ObjectListFieldsPage.cs
- FileLoadException.cs
- BaseDataList.cs
- DataSourceControlBuilder.cs
- OdbcErrorCollection.cs
- ParameterModifier.cs
- BooleanFacetDescriptionElement.cs
- CodeStatement.cs
- FormCollection.cs
- DBDataPermission.cs
- CapabilitiesRule.cs
- SqlConnectionFactory.cs
- TypeDelegator.cs
- Camera.cs
- TypePropertyEditor.cs
- SynchronizingStream.cs
- ToolStripDropTargetManager.cs
- InstanceKeyNotReadyException.cs
- SqlProcedureAttribute.cs
- ProgressBar.cs
- SQLMembershipProvider.cs
- ConnectionPoint.cs
- MessageSecurityVersion.cs
- SQLCharsStorage.cs
- SQLChars.cs
- TimersDescriptionAttribute.cs
- VisualStyleRenderer.cs
- IDispatchConstantAttribute.cs
- XmlTextWriter.cs
- ActivityCollectionMarkupSerializer.cs
- Material.cs
- FileDialog_Vista.cs
- NegotiateStream.cs
- ItemList.cs
- SafeViewOfFileHandle.cs
- KeyMatchBuilder.cs
- SchemaReference.cs
- RegexCompiler.cs
- LeftCellWrapper.cs
- Help.cs
- SimplePropertyEntry.cs
- CheckBoxList.cs
- EventPrivateKey.cs
- ErasingStroke.cs
- StaticTextPointer.cs
- DefaultSerializationProviderAttribute.cs
- SafeNativeMethods.cs
- RowParagraph.cs
- PersonalizationDictionary.cs
- PropertySegmentSerializationProvider.cs
- CacheRequest.cs
- EventItfInfo.cs
- SQLByteStorage.cs
- Decorator.cs
- Int32RectValueSerializer.cs
- UInt32Converter.cs
- DocumentPageTextView.cs
- SoapObjectWriter.cs
- InputProcessorProfilesLoader.cs
- FamilyMapCollection.cs
- CatalogPart.cs
- TimerElapsedEvenArgs.cs
- HMAC.cs
- TextEditorCharacters.cs
- SchemaTableOptionalColumn.cs
- ZoneLinkButton.cs
- RootBrowserWindowAutomationPeer.cs
- RsaSecurityToken.cs
- SqlServer2KCompatibilityCheck.cs
- HostedElements.cs
- SafeNativeMemoryHandle.cs
- ObjectResult.cs
- OracleTimeSpan.cs
- ProfileSettingsCollection.cs
- StyleHelper.cs
- QueryHandler.cs
- DaylightTime.cs
- lengthconverter.cs
- LocationReferenceEnvironment.cs
- LiteralControl.cs