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
- SmtpException.cs
- CriticalHandle.cs
- ListMarkerSourceInfo.cs
- WrappedReader.cs
- Vertex.cs
- XslAst.cs
- SynchronizationHandlesCodeDomSerializer.cs
- RegistryPermission.cs
- Bits.cs
- CollectionTraceRecord.cs
- StrokeNode.cs
- CoTaskMemHandle.cs
- DataGridBeginningEditEventArgs.cs
- BrowserCapabilitiesFactory.cs
- HttpListenerRequest.cs
- _AuthenticationState.cs
- ExponentialEase.cs
- _HeaderInfo.cs
- NumberSubstitution.cs
- RecordManager.cs
- GenericAuthenticationEventArgs.cs
- WorkflowOperationErrorHandler.cs
- ResourceDictionaryCollection.cs
- ExpandableObjectConverter.cs
- DelegateHelpers.Generated.cs
- Vector3DCollectionConverter.cs
- FramingFormat.cs
- EarlyBoundInfo.cs
- X509PeerCertificateAuthentication.cs
- KeyNotFoundException.cs
- ProfileService.cs
- StringSorter.cs
- Propagator.JoinPropagator.cs
- _TransmitFileOverlappedAsyncResult.cs
- Duration.cs
- HostExecutionContextManager.cs
- LineMetrics.cs
- DirectoryInfo.cs
- MetadataArtifactLoaderComposite.cs
- ListGeneralPage.cs
- AttributeCollection.cs
- PersonalizationStateInfo.cs
- TransformerInfo.cs
- EntityConnectionStringBuilder.cs
- FlowchartStart.xaml.cs
- RichTextBox.cs
- TypeSystemHelpers.cs
- DbgCompiler.cs
- ListSortDescriptionCollection.cs
- CodeLinePragma.cs
- InkPresenter.cs
- PropertyConverter.cs
- SyndicationFeedFormatter.cs
- VisualStateManager.cs
- DataGridViewTextBoxEditingControl.cs
- TableDetailsCollection.cs
- ApplicationCommands.cs
- WebPartVerb.cs
- DataSourceXmlSubItemAttribute.cs
- AsnEncodedData.cs
- DataObject.cs
- PropertyValueUIItem.cs
- SpotLight.cs
- RoutingChannelExtension.cs
- DtdParser.cs
- TemplatedWizardStep.cs
- FlowDocumentReaderAutomationPeer.cs
- X509Certificate.cs
- TemplateKey.cs
- NetNamedPipeBindingCollectionElement.cs
- Vector3DAnimation.cs
- SystemIPv6InterfaceProperties.cs
- StringFormat.cs
- TypeDependencyAttribute.cs
- MergeFilterQuery.cs
- OutputCacheSettings.cs
- PropertyDescriptorComparer.cs
- FactoryGenerator.cs
- InkCanvas.cs
- SeverityFilter.cs
- DesignTimeTemplateParser.cs
- MetadataArtifactLoader.cs
- SafeLocalAllocation.cs
- AssemblyResourceLoader.cs
- DataFormat.cs
- BrowserCapabilitiesFactory35.cs
- Menu.cs
- ListViewItemMouseHoverEvent.cs
- CommandField.cs
- GC.cs
- ActivityTrace.cs
- ReadOnlyAttribute.cs
- StringConcat.cs
- BamlLocalizer.cs
- CompilerScopeManager.cs
- CellTreeNode.cs
- DataView.cs
- VersionPair.cs
- DataTemplate.cs
- ItemType.cs