Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / GeometryDrawing.cs / 1305600 / GeometryDrawing.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: GeometryDrawing represents a drawing operation that combines // a geometry with and brush and/or pen to produce rendered // content. // // History: // // 2004/11/17 : timothyc - Created it. // //--------------------------------------------------------------------------- using System.Diagnostics; namespace System.Windows.Media { ////// GeometryDrawing represents a drawing operation that combines /// a geometry with and brush and/or pen to produce rendered /// content. /// public sealed partial class GeometryDrawing : Drawing { #region Constructors ////// Default GeometryDrawing constructor. /// Constructs an object with all properties set to their default values /// public GeometryDrawing() { } ////// Three-argument GeometryDrawing constructor. /// Constructs an object with the Brush, Pen, and Geometry properties /// set to the value of their respective arguments. /// public GeometryDrawing(Brush brush, Pen pen, Geometry geometry) { Brush = brush; Pen = pen; Geometry = geometry; } #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.DrawGeometry( Brush, Pen, Geometry ); } #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
- CommonObjectSecurity.cs
- StyleXamlParser.cs
- HtmlMeta.cs
- CompoundFileReference.cs
- TripleDES.cs
- UnsafeNativeMethodsPenimc.cs
- BitmapEffectGroup.cs
- MetroSerializationManager.cs
- DataGridViewCheckBoxCell.cs
- DataGridViewSelectedCellCollection.cs
- Stack.cs
- XmlSerializationGeneratedCode.cs
- HotSpot.cs
- FontResourceCache.cs
- PersistencePipeline.cs
- PersianCalendar.cs
- DES.cs
- InheritedPropertyDescriptor.cs
- IUnknownConstantAttribute.cs
- EditCommandColumn.cs
- FormView.cs
- SettingsBase.cs
- DivideByZeroException.cs
- AlphaSortedEnumConverter.cs
- Code.cs
- EncoderReplacementFallback.cs
- TextRangeEditLists.cs
- HybridWebProxyFinder.cs
- SQLDateTimeStorage.cs
- AsymmetricKeyExchangeFormatter.cs
- MenuRendererStandards.cs
- Calendar.cs
- Compress.cs
- TransformerInfoCollection.cs
- TextBoxView.cs
- FixedSchema.cs
- FormsAuthenticationCredentials.cs
- ByteAnimationBase.cs
- VirtualDirectoryMapping.cs
- RandomNumberGenerator.cs
- PrintPreviewControl.cs
- UriTemplateTable.cs
- JapaneseLunisolarCalendar.cs
- GridEntryCollection.cs
- safelinkcollection.cs
- WebBrowserNavigatingEventHandler.cs
- HtmlHead.cs
- ResXBuildProvider.cs
- ScriptResourceHandler.cs
- RecordBuilder.cs
- Exceptions.cs
- GeneralTransform3DGroup.cs
- RuleSettingsCollection.cs
- TableColumnCollectionInternal.cs
- NullableIntSumAggregationOperator.cs
- StorageScalarPropertyMapping.cs
- SqlWebEventProvider.cs
- ThrowHelper.cs
- Size3D.cs
- ContravarianceAdapter.cs
- RunClient.cs
- PolicyStatement.cs
- InkCanvasSelection.cs
- DataGridViewComboBoxColumn.cs
- StorageEntitySetMapping.cs
- AspCompat.cs
- ParsedRoute.cs
- XmlSchemaSequence.cs
- SystemInfo.cs
- Ref.cs
- UnrecognizedAssertionsBindingElement.cs
- Int64Converter.cs
- Message.cs
- FileCodeGroup.cs
- Hashtable.cs
- SqlDataSourceCache.cs
- ChameleonKey.cs
- SqlRecordBuffer.cs
- OracleCommandBuilder.cs
- Vars.cs
- RewritingProcessor.cs
- serverconfig.cs
- SRDisplayNameAttribute.cs
- ListControlConvertEventArgs.cs
- MarkupExtensionReturnTypeAttribute.cs
- CryptoApi.cs
- OletxEnlistment.cs
- ListBindingConverter.cs
- DataSourceXmlTextReader.cs
- Row.cs
- SrgsElement.cs
- DataGridViewComboBoxColumn.cs
- XmlComment.cs
- ScrollViewer.cs
- CapabilitiesAssignment.cs
- SID.cs
- RecordsAffectedEventArgs.cs
- XmlNotation.cs
- ItemCheckedEvent.cs
- BindingContext.cs