Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / GlyphRunDrawing.cs / 1305600 / GlyphRunDrawing.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: GlyphRunDrawing represents a drawing operation that renders // a GlyphRun. // // History: // // 2004/11/17 : timothyc - Created it. // //--------------------------------------------------------------------------- using System.Diagnostics; namespace System.Windows.Media { ////// GlyphRunDrawing represents a drawing operation that renders a GlyphRun. /// public sealed partial class GlyphRunDrawing : Drawing { #region Constructors ////// Default GlyphRunDrawing constructor. /// Constructs an object with all properties set to their default values /// public GlyphRunDrawing() { } ////// Two-argument GlyphRunDrawing constructor. /// Constructs an object with the GlyphRun and ForegroundBrush properties /// set to the value of their respective arguments. /// public GlyphRunDrawing(Brush foregroundBrush, GlyphRun glyphRun) { GlyphRun = glyphRun; ForegroundBrush = foregroundBrush; } #endregion #region Internal methods ////// Calls methods on the DrawingContext that are equivalent to the /// Drawing with the Drawing's current value. /// internal override void WalkCurrentValue(DrawingContextWalker ctx) { // We avoid unneccessary ShouldStopWalking checks based on assumptions // about when ShouldStopWalking is set. Guard that assumption with an // assertion. See DrawingGroup.WalkCurrentValue comment for more details. Debug.Assert(!ctx.ShouldStopWalking); ctx.DrawGlyphRun( ForegroundBrush, GlyphRun ); } #endregion Internal methods } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBSqlParserTable.cs
- TextServicesCompartmentContext.cs
- AssemblySettingAttributes.cs
- AuthorizationRuleCollection.cs
- BaseCAMarshaler.cs
- ColumnClickEvent.cs
- SecUtil.cs
- altserialization.cs
- CollectionContainer.cs
- PropertyGeneratedEventArgs.cs
- SeverityFilter.cs
- XmlAnyAttributeAttribute.cs
- PopupEventArgs.cs
- ContentType.cs
- Registry.cs
- WebConfigurationManager.cs
- BlockingCollection.cs
- StoreItemCollection.cs
- Scheduler.cs
- DeferredRunTextReference.cs
- XmlUnspecifiedAttribute.cs
- XappLauncher.cs
- oledbmetadatacolumnnames.cs
- GroupBoxAutomationPeer.cs
- FatalException.cs
- SqlWorkflowPersistenceService.cs
- ContentDisposition.cs
- GuidTagList.cs
- Parsers.cs
- XmlChildEnumerator.cs
- InheritedPropertyDescriptor.cs
- BoundColumn.cs
- FormClosedEvent.cs
- SafeRegistryKey.cs
- LogRecordSequence.cs
- ObjectItemConventionAssemblyLoader.cs
- PlatformNotSupportedException.cs
- Evaluator.cs
- CriticalFinalizerObject.cs
- DragAssistanceManager.cs
- OrderedDictionary.cs
- XmlRootAttribute.cs
- CapabilitiesPattern.cs
- CustomError.cs
- InstanceValue.cs
- ValidatingPropertiesEventArgs.cs
- NTAccount.cs
- ToolStripContentPanel.cs
- entityreference_tresulttype.cs
- Rect3D.cs
- ScriptResourceHandler.cs
- ContentElement.cs
- DataPagerCommandEventArgs.cs
- Vector3DAnimationUsingKeyFrames.cs
- WebPartCollection.cs
- PopupRoot.cs
- ToolboxItemCollection.cs
- CompareValidator.cs
- EntityDataSourceQueryBuilder.cs
- BoundColumn.cs
- TableLayoutStyleCollection.cs
- MetabaseServerConfig.cs
- PackageRelationshipCollection.cs
- ConstantSlot.cs
- InvalidProgramException.cs
- COM2ColorConverter.cs
- SQLBytes.cs
- MultiDataTrigger.cs
- FigureParaClient.cs
- ResourceDescriptionAttribute.cs
- Rectangle.cs
- RenderDataDrawingContext.cs
- ResourceAttributes.cs
- MetadataItem.cs
- ProfileInfo.cs
- ImportCatalogPart.cs
- DependentTransaction.cs
- WindowsListViewSubItem.cs
- DataRowView.cs
- mongolianshape.cs
- UIElementIsland.cs
- DoubleCollectionConverter.cs
- SqlXml.cs
- remotingproxy.cs
- CredentialCache.cs
- RijndaelManaged.cs
- SystemPens.cs
- DataGridLength.cs
- ActivityContext.cs
- PropertyRecord.cs
- MembershipAdapter.cs
- SevenBitStream.cs
- PersonalizableAttribute.cs
- TypeConverterValueSerializer.cs
- EventlogProvider.cs
- EntityTypeEmitter.cs
- WebPageTraceListener.cs
- Root.cs
- MetadataCache.cs
- BypassElementCollection.cs