Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- StringSorter.cs
- ConfigurationSectionGroupCollection.cs
- WmlPageAdapter.cs
- ControlEvent.cs
- Accessors.cs
- FloatAverageAggregationOperator.cs
- _Rfc2616CacheValidators.cs
- DataGridViewTextBoxCell.cs
- StateItem.cs
- NetworkStream.cs
- RankException.cs
- TypedTableBaseExtensions.cs
- AttachInfo.cs
- WizardPanel.cs
- ViewStateChangedEventArgs.cs
- SapiRecognizer.cs
- PeerIPHelper.cs
- HatchBrush.cs
- XhtmlBasicImageAdapter.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- CollectionContainer.cs
- HttpCookie.cs
- BitmapVisualManager.cs
- SequentialWorkflowHeaderFooter.cs
- DataGridLinkButton.cs
- QueryException.cs
- SiteMapDataSourceView.cs
- EventLog.cs
- RowVisual.cs
- WinFormsUtils.cs
- XmlMemberMapping.cs
- WebPartAddingEventArgs.cs
- BrowserInteropHelper.cs
- SystemInformation.cs
- Environment.cs
- CompoundFileDeflateTransform.cs
- CodeTypeDeclaration.cs
- SettingsAttributes.cs
- BitVec.cs
- BitVec.cs
- UserControl.cs
- SplitterEvent.cs
- NestPullup.cs
- SHA384Cng.cs
- RequestTimeoutManager.cs
- DescendentsWalkerBase.cs
- IdentityModelDictionary.cs
- ChangeNode.cs
- HttpModuleCollection.cs
- PropertyTab.cs
- DetailsViewInsertedEventArgs.cs
- TrustManagerMoreInformation.cs
- sqlpipe.cs
- NativeStructs.cs
- SerTrace.cs
- SqlRemoveConstantOrderBy.cs
- DBConcurrencyException.cs
- DbProviderServices.cs
- ProcessRequestArgs.cs
- HashRepartitionStream.cs
- TextServicesDisplayAttribute.cs
- HyperLinkColumn.cs
- TaskFormBase.cs
- ArrayElementGridEntry.cs
- HttpWebRequest.cs
- WorkflowRuntimeSection.cs
- OdbcConnectionStringbuilder.cs
- IndependentAnimationStorage.cs
- NodeFunctions.cs
- ToolboxComponentsCreatedEventArgs.cs
- safesecurityhelperavalon.cs
- XMLDiffLoader.cs
- HealthMonitoringSectionHelper.cs
- DataGridViewButtonColumn.cs
- ColumnHeader.cs
- DateTime.cs
- HttpProfileBase.cs
- StorageEndPropertyMapping.cs
- XmlNamespaceMappingCollection.cs
- InteropAutomationProvider.cs
- WithParamAction.cs
- TypeInfo.cs
- ObjectParameter.cs
- SmtpNegotiateAuthenticationModule.cs
- SessionStateItemCollection.cs
- KeyEventArgs.cs
- DotExpr.cs
- ResourceWriter.cs
- SiteMap.cs
- HandlerFactoryCache.cs
- RangeValidator.cs
- XamlPoint3DCollectionSerializer.cs
- TextViewBase.cs
- ListContractAdapter.cs
- OracleConnectionFactory.cs
- LayoutEditorPart.cs
- ItemsChangedEventArgs.cs
- CodeMethodInvokeExpression.cs
- InputLanguage.cs
- MetadataException.cs