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
- IntellisenseTextBox.cs
- VersionedStreamOwner.cs
- SwitchElementsCollection.cs
- X509Certificate2.cs
- HtmlInputPassword.cs
- ListViewItemMouseHoverEvent.cs
- SqlCommandBuilder.cs
- shaperfactoryquerycachekey.cs
- mediaclock.cs
- TemplateControlCodeDomTreeGenerator.cs
- EntityDataSourceMemberPath.cs
- BindToObject.cs
- _ListenerRequestStream.cs
- StoreContentChangedEventArgs.cs
- XmlFormatReaderGenerator.cs
- nulltextnavigator.cs
- WindowsEditBox.cs
- XmlEncApr2001.cs
- SendingRequestEventArgs.cs
- InvokeHandlers.cs
- SpStreamWrapper.cs
- TypeSemantics.cs
- WebMessageFormatHelper.cs
- Pkcs7Signer.cs
- SystemWebCachingSectionGroup.cs
- ConcurrentQueue.cs
- MetadataFile.cs
- ParameterCollection.cs
- XmlDataCollection.cs
- AsymmetricSecurityBindingElement.cs
- DictionaryBase.cs
- HttpWebRequest.cs
- RestHandler.cs
- ComMethodElement.cs
- entityreference_tresulttype.cs
- RewritingValidator.cs
- WorkflowDefinitionDispenser.cs
- XmlArrayItemAttribute.cs
- PermissionSet.cs
- ConcatQueryOperator.cs
- ListViewGroupConverter.cs
- EntityDataSourceQueryBuilder.cs
- _SafeNetHandles.cs
- LinearKeyFrames.cs
- CheckBoxList.cs
- SecurityManager.cs
- DisableDpiAwarenessAttribute.cs
- SynchronizationFilter.cs
- DialogDivider.cs
- RouteItem.cs
- SrgsSubset.cs
- TreeWalker.cs
- DataControlReference.cs
- CodeLabeledStatement.cs
- DataObjectPastingEventArgs.cs
- CategoryAttribute.cs
- ResourceDescriptionAttribute.cs
- MergablePropertyAttribute.cs
- XmlAtomicValue.cs
- ProjectionPruner.cs
- TextMarkerSource.cs
- TreeViewImageIndexConverter.cs
- GeometryGroup.cs
- FamilyCollection.cs
- localization.cs
- SystemException.cs
- DrawingImage.cs
- SafeThreadHandle.cs
- QueryExpr.cs
- ProcessModule.cs
- XPathParser.cs
- SocketInformation.cs
- DataColumnChangeEvent.cs
- ServiceHostingEnvironmentSection.cs
- GridSplitterAutomationPeer.cs
- XmlnsPrefixAttribute.cs
- ArgumentException.cs
- GenerateScriptTypeAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- XmlIlVisitor.cs
- ScriptModule.cs
- PropVariant.cs
- InvokeProviderWrapper.cs
- EmptyStringExpandableObjectConverter.cs
- ProviderIncompatibleException.cs
- KeyValuePairs.cs
- DefaultValueAttribute.cs
- CodeCastExpression.cs
- SHA256Managed.cs
- IImplicitResourceProvider.cs
- TrustSection.cs
- Int32AnimationBase.cs
- MenuItemStyleCollection.cs
- SizeChangedInfo.cs
- LockedAssemblyCache.cs
- DataGridRowsPresenter.cs
- BamlRecords.cs
- DataProtection.cs
- SemanticValue.cs
- NetworkInformationException.cs