Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextRunProperties.cs / 1 / 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
- ValueExpressions.cs
- DefaultValueMapping.cs
- GridViewColumn.cs
- DataServiceProviderWrapper.cs
- KeyFrames.cs
- ModulesEntry.cs
- XmlBaseWriter.cs
- WindowsAuthenticationModule.cs
- ApplicationId.cs
- CaseKeyBox.ViewModel.cs
- NetworkInformationPermission.cs
- AgileSafeNativeMemoryHandle.cs
- EventTask.cs
- RedirectionProxy.cs
- PrivilegedConfigurationManager.cs
- EdmEntityTypeAttribute.cs
- XmlSchemaImporter.cs
- AutomationTextAttribute.cs
- InProcStateClientManager.cs
- WinInet.cs
- MimeFormImporter.cs
- AdjustableArrowCap.cs
- ProcessProtocolHandler.cs
- LogEntrySerialization.cs
- CompareValidator.cs
- WebHeaderCollection.cs
- RenderCapability.cs
- PropertyGridEditorPart.cs
- ValueUtilsSmi.cs
- ToolBarOverflowPanel.cs
- Authorization.cs
- StylusCollection.cs
- ToolStripKeyboardHandlingService.cs
- DataRowView.cs
- BrowserCapabilitiesCodeGenerator.cs
- DocumentViewerBase.cs
- webproxy.cs
- StrokeNodeOperations2.cs
- Binding.cs
- ComponentEditorForm.cs
- DispatchOperation.cs
- Number.cs
- LocalizationComments.cs
- DataGridViewCellStyle.cs
- ZoneLinkButton.cs
- IteratorFilter.cs
- HwndHostAutomationPeer.cs
- UserPrincipalNameElement.cs
- HttpValueCollection.cs
- AgileSafeNativeMemoryHandle.cs
- ReflectionHelper.cs
- StringKeyFrameCollection.cs
- Debug.cs
- Splitter.cs
- OrderedDictionaryStateHelper.cs
- XsdCachingReader.cs
- DataKeyPropertyAttribute.cs
- BatchServiceHost.cs
- DataBoundControlDesigner.cs
- BitmapCodecInfoInternal.cs
- ConstantCheck.cs
- InputQueue.cs
- WindowsGraphicsWrapper.cs
- XamlSerializerUtil.cs
- SrgsElement.cs
- WebBaseEventKeyComparer.cs
- FastEncoder.cs
- GridViewRow.cs
- XmlUtilWriter.cs
- XamlClipboardData.cs
- MainMenu.cs
- CustomSignedXml.cs
- XmlObjectSerializerReadContextComplex.cs
- Latin1Encoding.cs
- GeneralTransformGroup.cs
- IChannel.cs
- WSTrust.cs
- DataTableReaderListener.cs
- InvokeMethod.cs
- TypeDelegator.cs
- Int32AnimationBase.cs
- XNodeValidator.cs
- ActivityScheduledQuery.cs
- StandardBindingElementCollection.cs
- GlyphsSerializer.cs
- WebBrowserEvent.cs
- AncestorChangedEventArgs.cs
- OleServicesContext.cs
- ViewUtilities.cs
- WinFormsSpinner.cs
- ImageMap.cs
- SqlBuffer.cs
- ActivitySurrogate.cs
- LambdaCompiler.ControlFlow.cs
- COM2ComponentEditor.cs
- Screen.cs
- WindowsToolbarAsMenu.cs
- ResourcesChangeInfo.cs
- SecurityTokenSerializer.cs
- ServiceInstanceProvider.cs