Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CommonUI / System / Drawing / Design / PaintValueEventArgs.cs / 1 / PaintValueEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing.Design { using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; ////// /// This object is passed to UITypeEditor.PaintValue. /// It contains all the information needed for the editor to /// paint the given value, including the Rectangle in which /// the drawing should be done, and the Graphics object with which the drawing /// should be done. /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class PaintValueEventArgs : EventArgs { private readonly ITypeDescriptorContext context; private readonly object valueToPaint; ////// /// The graphics object with which the drawing should be done. /// private readonly Graphics graphics; ////// /// The rectangle outlining the area in which the painting should be /// done. /// private readonly Rectangle bounds; ////// /// Creates a new PaintValueEventArgs with the given parameters. /// public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) { this.context = context; this.valueToPaint = value; this.graphics = graphics; if (graphics == null) throw new ArgumentNullException("graphics"); this.bounds = bounds; } ////// /// The rectangle outlining the area in which the painting should be /// done. /// public Rectangle Bounds { get { return bounds; } } ////// /// ITypeDescriptorContext object for additional information about the context this value appears in. /// public ITypeDescriptorContext Context { get { return context; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The value to paint. /// public object Value { get { return valueToPaint; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing.Design { using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; ////// /// This object is passed to UITypeEditor.PaintValue. /// It contains all the information needed for the editor to /// paint the given value, including the Rectangle in which /// the drawing should be done, and the Graphics object with which the drawing /// should be done. /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class PaintValueEventArgs : EventArgs { private readonly ITypeDescriptorContext context; private readonly object valueToPaint; ////// /// The graphics object with which the drawing should be done. /// private readonly Graphics graphics; ////// /// The rectangle outlining the area in which the painting should be /// done. /// private readonly Rectangle bounds; ////// /// Creates a new PaintValueEventArgs with the given parameters. /// public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) { this.context = context; this.valueToPaint = value; this.graphics = graphics; if (graphics == null) throw new ArgumentNullException("graphics"); this.bounds = bounds; } ////// /// The rectangle outlining the area in which the painting should be /// done. /// public Rectangle Bounds { get { return bounds; } } ////// /// ITypeDescriptorContext object for additional information about the context this value appears in. /// public ITypeDescriptorContext Context { get { return context; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The value to paint. /// public object Value { get { return valueToPaint; } } } } // 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
- XmlSchemaDatatype.cs
- PassportAuthenticationEventArgs.cs
- XmlNodeChangedEventManager.cs
- DateTimeUtil.cs
- URLBuilder.cs
- RegexCaptureCollection.cs
- DefaultMergeHelper.cs
- _LocalDataStore.cs
- TextFormatterHost.cs
- ConfigurationPropertyCollection.cs
- OptimisticConcurrencyException.cs
- IODescriptionAttribute.cs
- SortFieldComparer.cs
- VectorCollectionConverter.cs
- ToolStripPanelRow.cs
- CompleteWizardStep.cs
- TransactionScope.cs
- PluralizationServiceUtil.cs
- Font.cs
- Transform.cs
- XmlTypeMapping.cs
- _NegoState.cs
- Pts.cs
- TextDecorationCollection.cs
- StateDesigner.cs
- ErrorHandler.cs
- Stroke.cs
- CompareInfo.cs
- MainMenu.cs
- RegexWriter.cs
- ScriptReferenceEventArgs.cs
- IPEndPoint.cs
- ConnectionManagementElement.cs
- TextView.cs
- CharAnimationBase.cs
- HtmlTable.cs
- precedingquery.cs
- DataControlButton.cs
- ExpressionPrefixAttribute.cs
- mediaeventargs.cs
- StrokeCollection2.cs
- IteratorDescriptor.cs
- ServiceHostingEnvironment.cs
- DmlSqlGenerator.cs
- DockPattern.cs
- OracleMonthSpan.cs
- TreeViewTemplateSelector.cs
- PropertyItemInternal.cs
- Vector3DIndependentAnimationStorage.cs
- TypeViewSchema.cs
- AssociationTypeEmitter.cs
- DoubleCollection.cs
- SerializationEventsCache.cs
- RecipientInfo.cs
- PackagePartCollection.cs
- EntitySetDataBindingList.cs
- GraphicsState.cs
- ToolboxItemCollection.cs
- RegexWriter.cs
- View.cs
- VerificationException.cs
- WebPartMenu.cs
- ModelPerspective.cs
- PaintEvent.cs
- ThaiBuddhistCalendar.cs
- MetadataProperty.cs
- querybuilder.cs
- ContextStack.cs
- XmlDataSource.cs
- Timeline.cs
- CodeLabeledStatement.cs
- QueryContinueDragEvent.cs
- ListMarkerSourceInfo.cs
- AsyncOperation.cs
- ContextStaticAttribute.cs
- WebPartDescriptionCollection.cs
- isolationinterop.cs
- DbMetaDataColumnNames.cs
- ResourceContainerWrapper.cs
- OleDbPropertySetGuid.cs
- ExpressionPrefixAttribute.cs
- GCHandleCookieTable.cs
- ErrorHandler.cs
- panel.cs
- ShadowGlyph.cs
- VideoDrawing.cs
- LocalizationParserHooks.cs
- XmlJsonReader.cs
- LocationChangedEventArgs.cs
- SQLDateTime.cs
- DataGridHeaderBorder.cs
- BufferBuilder.cs
- InitializationEventAttribute.cs
- ProfileGroupSettings.cs
- _Connection.cs
- BmpBitmapEncoder.cs
- ProjectionPathSegment.cs
- ParallelDesigner.cs
- uribuilder.cs
- counter.cs