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
- AttachInfo.cs
- TextAutomationPeer.cs
- BaseCodePageEncoding.cs
- XmlSchemaSimpleTypeList.cs
- TypeDelegator.cs
- Int16KeyFrameCollection.cs
- AddInBase.cs
- LogicalExpr.cs
- BrowserCapabilitiesFactoryBase.cs
- Module.cs
- ObjectListComponentEditor.cs
- CrossSiteScriptingValidation.cs
- InkPresenterAutomationPeer.cs
- XmlnsCache.cs
- Style.cs
- RsaSecurityToken.cs
- EditingCoordinator.cs
- ProcessManager.cs
- OrderByBuilder.cs
- ValidateNames.cs
- BaseCodeDomTreeGenerator.cs
- SourceFileBuildProvider.cs
- Tablet.cs
- StrokeCollectionConverter.cs
- XmlDocumentFragment.cs
- IPAddressCollection.cs
- RectAnimationUsingKeyFrames.cs
- IntSumAggregationOperator.cs
- ResourceDisplayNameAttribute.cs
- TextFindEngine.cs
- CalendarDateRange.cs
- TransformerConfigurationWizardBase.cs
- LoadItemsEventArgs.cs
- SmtpCommands.cs
- TCPListener.cs
- XmlUtf8RawTextWriter.cs
- XmlLoader.cs
- ListViewItemCollectionEditor.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- OneOfConst.cs
- ItemMap.cs
- XmlMembersMapping.cs
- TdsParserStaticMethods.cs
- ImageIndexConverter.cs
- Attribute.cs
- EncryptedXml.cs
- _NestedMultipleAsyncResult.cs
- MouseBinding.cs
- DeviceSpecificDesigner.cs
- Command.cs
- COM2IProvidePropertyBuilderHandler.cs
- ThousandthOfEmRealDoubles.cs
- StylusPointPropertyInfoDefaults.cs
- CriticalHandle.cs
- DateTime.cs
- TextElement.cs
- ModuleConfigurationInfo.cs
- Size.cs
- WinEventHandler.cs
- DefaultTraceListener.cs
- MinimizableAttributeTypeConverter.cs
- TextDecorationCollection.cs
- SystemTcpStatistics.cs
- BinaryConverter.cs
- DefaultMemberAttribute.cs
- BitmapDownload.cs
- TimeoutHelper.cs
- NativeMethods.cs
- SchemaImporterExtensionElement.cs
- HMACSHA256.cs
- httpstaticobjectscollection.cs
- PageSetupDialog.cs
- ServiceAuthorizationElement.cs
- UnlockCardRequest.cs
- ConnectionPointGlyph.cs
- SqlWebEventProvider.cs
- ISAPIRuntime.cs
- D3DImage.cs
- ServiceNameElement.cs
- PropVariant.cs
- CssStyleCollection.cs
- PtsCache.cs
- ProgressBarRenderer.cs
- InteropExecutor.cs
- StreamHelper.cs
- WindowsProgressbar.cs
- MostlySingletonList.cs
- DataListCommandEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- GridEntry.cs
- CacheChildrenQuery.cs
- SqlDataReaderSmi.cs
- DataSourceXmlSerializer.cs
- CodePropertyReferenceExpression.cs
- FileChangesMonitor.cs
- Stacktrace.cs
- ExecutionScope.cs
- ResponseStream.cs
- TrustManagerMoreInformation.cs
- SchemaElementLookUpTableEnumerator.cs