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
- ExceptQueryOperator.cs
- CatalogZoneBase.cs
- DateTimeConverter2.cs
- GenericTypeParameterBuilder.cs
- ListDictionaryInternal.cs
- RegexCompilationInfo.cs
- METAHEADER.cs
- TextServicesManager.cs
- SafePEFileHandle.cs
- securitycriticaldataformultiplegetandset.cs
- Main.cs
- MediaPlayerState.cs
- SvcFileManager.cs
- CultureInfoConverter.cs
- ListControlStringCollectionEditor.cs
- Rotation3DAnimationUsingKeyFrames.cs
- DoWorkEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- LogicalTreeHelper.cs
- SqlCommandBuilder.cs
- CheckBoxStandardAdapter.cs
- IFlowDocumentViewer.cs
- RelationshipManager.cs
- DbDataReader.cs
- ProfileManager.cs
- TraceHandler.cs
- CornerRadius.cs
- UpWmlMobileTextWriter.cs
- WebPartChrome.cs
- StickyNote.cs
- MatrixKeyFrameCollection.cs
- InputScope.cs
- DiscardableAttribute.cs
- XMLUtil.cs
- IndexedSelectQueryOperator.cs
- SynchronizedDispatch.cs
- Permission.cs
- XmlWellformedWriterHelpers.cs
- BooleanStorage.cs
- ScrollItemProviderWrapper.cs
- Image.cs
- DataGridTablesFactory.cs
- TypeInfo.cs
- DataBindEngine.cs
- DesignerDataTableBase.cs
- ColorInterpolationModeValidation.cs
- URL.cs
- DurableEnlistmentState.cs
- SafeNativeMethods.cs
- SharedPersonalizationStateInfo.cs
- TemplateEditingFrame.cs
- MethodBuilderInstantiation.cs
- ZipFileInfoCollection.cs
- CapabilitiesRule.cs
- BinaryWriter.cs
- SettingsPropertyNotFoundException.cs
- DES.cs
- BitStream.cs
- CultureMapper.cs
- Fonts.cs
- BindingCompleteEventArgs.cs
- Bezier.cs
- LicenseException.cs
- XmlSchemaAttributeGroup.cs
- WorkflowApplicationUnloadedException.cs
- TextDocumentView.cs
- TaiwanCalendar.cs
- SecureUICommand.cs
- MasterPage.cs
- FontFamily.cs
- ServiceDescription.cs
- AutomationProperty.cs
- DetailsViewUpdateEventArgs.cs
- DBCSCodePageEncoding.cs
- DigitShape.cs
- WebPartConnectionsCancelEventArgs.cs
- EmbossBitmapEffect.cs
- CustomCategoryAttribute.cs
- ListView.cs
- NotFiniteNumberException.cs
- EventSinkHelperWriter.cs
- GroupBoxRenderer.cs
- DataRowCollection.cs
- OleDbConnection.cs
- CellNormalizer.cs
- QueryOpeningEnumerator.cs
- Group.cs
- IconHelper.cs
- WebSysDescriptionAttribute.cs
- PointLight.cs
- SelectionManager.cs
- StyleModeStack.cs
- DeclarativeCatalogPartDesigner.cs
- FrugalMap.cs
- ToolStripRenderer.cs
- DisplayInformation.cs
- DependencySource.cs
- DriveNotFoundException.cs
- MouseEvent.cs
- EventSinkActivityDesigner.cs