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
- EntityViewGenerationAttribute.cs
- SplashScreen.cs
- Point3DValueSerializer.cs
- StylusPointProperty.cs
- VectorAnimation.cs
- SiteMembershipCondition.cs
- httpserverutility.cs
- BooleanConverter.cs
- TransformDescriptor.cs
- ApplicationFileParser.cs
- TextParaClient.cs
- TraceListener.cs
- EntityDataSourceReferenceGroup.cs
- UInt64Converter.cs
- safelink.cs
- DbProviderFactory.cs
- CanonicalizationDriver.cs
- TransactionTraceIdentifier.cs
- InvalidCommandTreeException.cs
- CodeConstructor.cs
- ElementHost.cs
- DeferredElementTreeState.cs
- DataGridViewColumnCollection.cs
- BevelBitmapEffect.cs
- FileIOPermission.cs
- Walker.cs
- ping.cs
- TimelineCollection.cs
- NumberFormatInfo.cs
- AnalyzedTree.cs
- LinkLabel.cs
- ReadOnlyTernaryTree.cs
- Brush.cs
- MimeMultiPart.cs
- WinFormsSecurity.cs
- ConstraintManager.cs
- CanonicalFontFamilyReference.cs
- AccessDataSource.cs
- DataTableReaderListener.cs
- DataReceivedEventArgs.cs
- ThumbButtonInfo.cs
- RequiredFieldValidator.cs
- TryExpression.cs
- Model3DGroup.cs
- DtrList.cs
- COM2FontConverter.cs
- Property.cs
- ComboBoxItem.cs
- RSAPKCS1SignatureFormatter.cs
- ExplicitDiscriminatorMap.cs
- AttachInfo.cs
- DebugHandleTracker.cs
- Form.cs
- FixedDocumentPaginator.cs
- XDRSchema.cs
- PanelDesigner.cs
- FileIOPermission.cs
- ValidationErrorCollection.cs
- NavigateUrlConverter.cs
- ImportContext.cs
- DataRecord.cs
- Material.cs
- XmlSignatureManifest.cs
- SqlDependencyUtils.cs
- ScrollPattern.cs
- SID.cs
- ExpressionConverter.cs
- XamlRtfConverter.cs
- MetadataUtil.cs
- RowToFieldTransformer.cs
- CurrencyWrapper.cs
- CommonObjectSecurity.cs
- TaskHelper.cs
- Transform3D.cs
- RealProxy.cs
- KerberosReceiverSecurityToken.cs
- dbenumerator.cs
- WindowsStatic.cs
- Relationship.cs
- StorageComplexPropertyMapping.cs
- OdbcConnection.cs
- Transactions.cs
- GridViewSortEventArgs.cs
- SqlCachedBuffer.cs
- LinkLabelLinkClickedEvent.cs
- CustomCategoryAttribute.cs
- StylusTouchDevice.cs
- WpfWebRequestHelper.cs
- SmtpMail.cs
- BoundField.cs
- XmlSchemaValidationException.cs
- QilGenerator.cs
- IMembershipProvider.cs
- Control.cs
- ObjectDataSourceView.cs
- ContentElement.cs
- ProcessModelSection.cs
- Point3DIndependentAnimationStorage.cs
- ReversePositionQuery.cs
- CapacityStreamGeometryContext.cs