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
- LeftCellWrapper.cs
- GPPOINTF.cs
- FutureFactory.cs
- ColumnMapCopier.cs
- LayoutDump.cs
- RSACryptoServiceProvider.cs
- Quad.cs
- CompilerParameters.cs
- QuerySafeNavigator.cs
- InvokeMethodActivity.cs
- CaseStatementSlot.cs
- PageAsyncTask.cs
- EntityDataSourceViewSchema.cs
- TableCellCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- ChildDocumentBlock.cs
- DateRangeEvent.cs
- UIElement.cs
- SqlMethods.cs
- WindowsFormsSectionHandler.cs
- PropertyManager.cs
- ToolBar.cs
- TypeSystemHelpers.cs
- SafeBitVector32.cs
- RegexGroupCollection.cs
- ColumnResizeAdorner.cs
- SqlTypeSystemProvider.cs
- DataViewSetting.cs
- CompareValidator.cs
- TrackingParameters.cs
- ParamArrayAttribute.cs
- InvokePattern.cs
- KeyConverter.cs
- DBSchemaRow.cs
- CompilerResults.cs
- XMLSyntaxException.cs
- PackageStore.cs
- AliasedSlot.cs
- TextSpanModifier.cs
- XmlIncludeAttribute.cs
- Aes.cs
- SubqueryTrackingVisitor.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- FormViewInsertedEventArgs.cs
- Camera.cs
- SplitterEvent.cs
- DataServiceConfiguration.cs
- ServiceAuthorizationManager.cs
- TcpProcessProtocolHandler.cs
- TransformConverter.cs
- RadioButton.cs
- BoundField.cs
- SafeProcessHandle.cs
- MediaElementAutomationPeer.cs
- ThousandthOfEmRealDoubles.cs
- CompilerResults.cs
- SQLByte.cs
- PixelFormat.cs
- ThicknessConverter.cs
- TypeSystem.cs
- DoubleCollectionValueSerializer.cs
- ViewLoader.cs
- XpsThumbnail.cs
- TextRenderer.cs
- SoapSchemaMember.cs
- DataGridViewToolTip.cs
- SubMenuStyle.cs
- SafePEFileHandle.cs
- MetadataItemEmitter.cs
- ReadOnlyDictionary.cs
- NativeMethods.cs
- SystemIPv6InterfaceProperties.cs
- ListControlConvertEventArgs.cs
- EventRecordWrittenEventArgs.cs
- Application.cs
- ResourcePermissionBaseEntry.cs
- MouseDevice.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- TcpAppDomainProtocolHandler.cs
- HttpMethodAttribute.cs
- DataView.cs
- CacheEntry.cs
- ClaimComparer.cs
- TextParaClient.cs
- Stream.cs
- XMLSyntaxException.cs
- SecureStringHasher.cs
- Typography.cs
- TextAnchor.cs
- recordstate.cs
- DependencyObjectValidator.cs
- SoapSchemaExporter.cs
- Panel.cs
- SoapIncludeAttribute.cs
- PagedDataSource.cs
- SourceFileBuildProvider.cs
- TreeViewImageKeyConverter.cs
- BooleanExpr.cs
- MessageSmuggler.cs
- Exceptions.cs