Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BmpBitmapEncoder.cs
- LogicalExpr.cs
- DataGridViewCellStateChangedEventArgs.cs
- RadioButtonStandardAdapter.cs
- MemberCollection.cs
- SemaphoreFullException.cs
- RuntimeConfigLKG.cs
- IssuedTokenParametersEndpointAddressElement.cs
- RecognizerStateChangedEventArgs.cs
- RouteData.cs
- ClientRoleProvider.cs
- ListViewPagedDataSource.cs
- ScrollableControl.cs
- MdbDataFileEditor.cs
- AttachedPropertyDescriptor.cs
- PersonalizationProviderHelper.cs
- SqlGenerator.cs
- DataViewManager.cs
- VisualStyleInformation.cs
- HttpCachePolicy.cs
- TableRow.cs
- HTMLTextWriter.cs
- CapabilitiesUse.cs
- BinaryKeyIdentifierClause.cs
- BadImageFormatException.cs
- LiteralControl.cs
- XmlIlVisitor.cs
- mactripleDES.cs
- StylusPointDescription.cs
- EventLog.cs
- MetadataHelper.cs
- SHA1.cs
- ListMarkerSourceInfo.cs
- HttpServerVarsCollection.cs
- DataGridViewCellStyleConverter.cs
- ToolBarOverflowPanel.cs
- AnnotationMap.cs
- WebControlsSection.cs
- OleStrCAMarshaler.cs
- DesignerSerializationVisibilityAttribute.cs
- CompilerErrorCollection.cs
- ResXDataNode.cs
- WebPartTransformer.cs
- Soap.cs
- EventLog.cs
- FileSystemEventArgs.cs
- DataGridColumnStyleMappingNameEditor.cs
- GetRecipientRequest.cs
- RewritingPass.cs
- ChunkedMemoryStream.cs
- CodeDomSerializerException.cs
- ParameterReplacerVisitor.cs
- WebPartConnectionsConnectVerb.cs
- AmbientValueAttribute.cs
- HighlightVisual.cs
- DrawingContextDrawingContextWalker.cs
- GridViewCancelEditEventArgs.cs
- StylusPointPropertyId.cs
- HtmlAnchor.cs
- DataGridViewCellEventArgs.cs
- HttpHandlersSection.cs
- SurrogateDataContract.cs
- InkCanvasSelectionAdorner.cs
- UnsafeNativeMethods.cs
- GcSettings.cs
- SystemUnicastIPAddressInformation.cs
- datacache.cs
- IIS7WorkerRequest.cs
- EventProxy.cs
- ParagraphVisual.cs
- PerformanceCounterCategory.cs
- TreeNodeCollectionEditorDialog.cs
- cache.cs
- ContextToken.cs
- SecurityKeyType.cs
- QilPatternVisitor.cs
- Font.cs
- ImageCollectionEditor.cs
- RightsManagementResourceHelper.cs
- MemoryStream.cs
- RectangleGeometry.cs
- WindowsFormsSynchronizationContext.cs
- DataServiceQuery.cs
- Expressions.cs
- TcpChannelListener.cs
- Divide.cs
- BinHexEncoding.cs
- TypeGenericEnumerableViewSchema.cs
- SHA1Managed.cs
- ExpandCollapseProviderWrapper.cs
- FormClosingEvent.cs
- DependencyObjectProvider.cs
- Hex.cs
- FormatterServices.cs
- WebPartConnectionsCancelVerb.cs
- DockingAttribute.cs
- AttributeUsageAttribute.cs
- panel.cs
- ProjectedSlot.cs
- XamlTypeMapper.cs