Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextModifier.cs / 1305600 / 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
- DataGridViewCellMouseEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- PolicyVersionConverter.cs
- TemplatedEditableDesignerRegion.cs
- SafeCoTaskMem.cs
- OptimalTextSource.cs
- SSmlParser.cs
- DataMemberFieldConverter.cs
- SchemaImporter.cs
- UnknownWrapper.cs
- TransformDescriptor.cs
- ApplicationHost.cs
- CancellableEnumerable.cs
- ActivityWithResultValueSerializer.cs
- ShaderEffect.cs
- StrokeRenderer.cs
- SchemaImporterExtensionElement.cs
- HtmlControlPersistable.cs
- XmlSchemaAnyAttribute.cs
- WinFormsSpinner.cs
- EdmValidator.cs
- NativeRecognizer.cs
- HitTestDrawingContextWalker.cs
- UnsignedPublishLicense.cs
- activationcontext.cs
- MsmqProcessProtocolHandler.cs
- ContainerUtilities.cs
- MultiPropertyDescriptorGridEntry.cs
- ImmutableCollection.cs
- SqlCharStream.cs
- ServiceContractListItemList.cs
- DataGridViewRowsAddedEventArgs.cs
- RelatedPropertyManager.cs
- __FastResourceComparer.cs
- RecordsAffectedEventArgs.cs
- CompensatableTransactionScopeActivity.cs
- ValidationError.cs
- AnnotationResourceChangedEventArgs.cs
- ImageSource.cs
- FactoryRecord.cs
- LayoutSettings.cs
- ComponentCommands.cs
- PriorityItem.cs
- SqlResolver.cs
- ObjectDataSourceMethodEventArgs.cs
- PTManager.cs
- ForceCopyBuildProvider.cs
- TrustSection.cs
- AxHostDesigner.cs
- PropertyInformation.cs
- TextRunCacheImp.cs
- PropertyChangeTracker.cs
- DesignerActionKeyboardBehavior.cs
- KeyValuePair.cs
- ConfigurationManagerInternalFactory.cs
- DashStyles.cs
- CodeTypeReference.cs
- CodeIdentifier.cs
- LogAppendAsyncResult.cs
- Label.cs
- CompensationExtension.cs
- PagesChangedEventArgs.cs
- ObjectDataSourceView.cs
- SQLDoubleStorage.cs
- Canvas.cs
- ContentType.cs
- DataGridViewSelectedCellCollection.cs
- ScriptingProfileServiceSection.cs
- KnownIds.cs
- ListItemConverter.cs
- MouseActionValueSerializer.cs
- WebServiceParameterData.cs
- FieldBuilder.cs
- TextureBrush.cs
- AttributeInfo.cs
- StaticDataManager.cs
- PermissionRequestEvidence.cs
- XhtmlBasicListAdapter.cs
- MultiAsyncResult.cs
- GACIdentityPermission.cs
- TableLayoutSettings.cs
- SchemaDeclBase.cs
- RootBrowserWindowAutomationPeer.cs
- OleDbRowUpdatingEvent.cs
- HtmlShimManager.cs
- XmlUtf8RawTextWriter.cs
- QueryStringParameter.cs
- PlaceHolder.cs
- StringConcat.cs
- XmlCharCheckingWriter.cs
- ProjectionPath.cs
- Formatter.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ContractDescription.cs
- RangeBase.cs
- HttpModulesSection.cs
- PageAdapter.cs
- XamlTypeMapperSchemaContext.cs
- CodeRemoveEventStatement.cs
- CommandDevice.cs