Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextRunProperties.cs / 1305600 / TextRunProperties.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation // // File: TextRunProperties.cs // // Contents: Text run properties // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-7-2005 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Globalization; using System.Windows; namespace System.Windows.Media.TextFormatting { ////// Properties that can change from one run to the next, such as typeface or foreground brush. /// ////// The client provides a concrete implementation of this abstract run properties class. This /// allows client to implement their run properties the way that fits with their run formatting /// store. /// public abstract class TextRunProperties { ////// Run typeface /// public abstract Typeface Typeface { get; } ////// Em size of font used to format and display text /// public abstract double FontRenderingEmSize { get; } ////// Em size of font to determine subtle change in font hinting default value is 12pt /// public abstract double FontHintingEmSize { get; } ////// Run TextDecorations. /// public abstract TextDecorationCollection TextDecorations { get; } ////// Brush used to fill text /// public abstract Brush ForegroundBrush { get; } ////// Brush used to paint background of run /// public abstract Brush BackgroundBrush { get; } ////// Run text culture info /// public abstract CultureInfo CultureInfo { get; } ////// Run Text effect collection /// public abstract TextEffectCollection TextEffects { get; } ////// Run vertical box alignment /// public virtual BaselineAlignment BaselineAlignment { get { return BaselineAlignment.Baseline; } } ////// Run typography properties /// public virtual TextRunTypographyProperties TypographyProperties { get { return null; } } ////// Number substitution options. /// public virtual NumberSubstitution NumberSubstitution { get { return null; } } } } // 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 // // File: TextRunProperties.cs // // Contents: Text run properties // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-7-2005 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Globalization; using System.Windows; namespace System.Windows.Media.TextFormatting { ////// Properties that can change from one run to the next, such as typeface or foreground brush. /// ////// The client provides a concrete implementation of this abstract run properties class. This /// allows client to implement their run properties the way that fits with their run formatting /// store. /// public abstract class TextRunProperties { ////// Run typeface /// public abstract Typeface Typeface { get; } ////// Em size of font used to format and display text /// public abstract double FontRenderingEmSize { get; } ////// Em size of font to determine subtle change in font hinting default value is 12pt /// public abstract double FontHintingEmSize { get; } ////// Run TextDecorations. /// public abstract TextDecorationCollection TextDecorations { get; } ////// Brush used to fill text /// public abstract Brush ForegroundBrush { get; } ////// Brush used to paint background of run /// public abstract Brush BackgroundBrush { get; } ////// Run text culture info /// public abstract CultureInfo CultureInfo { get; } ////// Run Text effect collection /// public abstract TextEffectCollection TextEffects { get; } ////// Run vertical box alignment /// public virtual BaselineAlignment BaselineAlignment { get { return BaselineAlignment.Baseline; } } ////// Run typography properties /// public virtual TextRunTypographyProperties TypographyProperties { get { return null; } } ////// Number substitution options. /// public virtual NumberSubstitution NumberSubstitution { get { return null; } } } } // 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
- DeviceContexts.cs
- BrowserCapabilitiesFactoryBase.cs
- InfoCardSymmetricCrypto.cs
- FormsAuthenticationUser.cs
- OdbcConnectionFactory.cs
- PropertyValueUIItem.cs
- GenerateTemporaryAssemblyTask.cs
- NavigationPropertySingletonExpression.cs
- RootBrowserWindow.cs
- TimeSpanConverter.cs
- CodeStatementCollection.cs
- ScriptRegistrationManager.cs
- QueryOutputWriter.cs
- CodeGotoStatement.cs
- ErrorHandler.cs
- RequestNavigateEventArgs.cs
- PermissionSetEnumerator.cs
- ProfileSection.cs
- WebPartCancelEventArgs.cs
- ConfigurationStrings.cs
- ParallelDesigner.cs
- PageCatalogPart.cs
- VideoDrawing.cs
- ComboBoxAutomationPeer.cs
- PaintValueEventArgs.cs
- MatrixKeyFrameCollection.cs
- XmlSchemaCollection.cs
- StrokeRenderer.cs
- OptimizerPatterns.cs
- ListBoxAutomationPeer.cs
- HideDisabledControlAdapter.cs
- TraceHandler.cs
- AbandonedMutexException.cs
- SingleAnimationUsingKeyFrames.cs
- CodeDomConfigurationHandler.cs
- FontStyle.cs
- HitTestParameters.cs
- LeaseManager.cs
- EmissiveMaterial.cs
- AssociatedControlConverter.cs
- ScrollBar.cs
- EventProviderWriter.cs
- documentation.cs
- WinEventWrap.cs
- UpdatePanelTrigger.cs
- Trace.cs
- QueryAccessibilityHelpEvent.cs
- SharedUtils.cs
- SafeBitVector32.cs
- AsymmetricCryptoHandle.cs
- FrameworkElement.cs
- SecurityHelper.cs
- SqlProviderUtilities.cs
- ValidationHelper.cs
- OleDbFactory.cs
- PointHitTestParameters.cs
- WebConfigurationHostFileChange.cs
- Invariant.cs
- ClientScriptItemCollection.cs
- securitymgrsite.cs
- Win32SafeHandles.cs
- ValidatorCompatibilityHelper.cs
- MimeParameterWriter.cs
- SoapExtensionImporter.cs
- VirtualDirectoryMapping.cs
- SoapAttributeOverrides.cs
- TemplateBuilder.cs
- Transform.cs
- TextSelectionHighlightLayer.cs
- Debugger.cs
- HwndStylusInputProvider.cs
- ValidationHelper.cs
- EventProvider.cs
- XamlBuildTaskServices.cs
- FrugalList.cs
- ControlParameter.cs
- ProcessThreadCollection.cs
- ReadOnlyDictionary.cs
- SafeRightsManagementPubHandle.cs
- CompatibleComparer.cs
- HostedImpersonationContext.cs
- CheckBoxStandardAdapter.cs
- SqlExpander.cs
- IxmlLineInfo.cs
- ObjectPersistData.cs
- DataErrorValidationRule.cs
- CompositeDesignerAccessibleObject.cs
- OperationCanceledException.cs
- DecoderFallback.cs
- InstanceOwnerException.cs
- WindowsButton.cs
- Track.cs
- HtmlTableRowCollection.cs
- UnknownWrapper.cs
- HideDisabledControlAdapter.cs
- SafeProcessHandle.cs
- SlotInfo.cs
- ButtonFieldBase.cs
- ToolStripPanelRenderEventArgs.cs
- HelpKeywordAttribute.cs