Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Design / PaintValueEventArgs.cs / 1305376 / 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
- VsPropertyGrid.cs
- InvokeBinder.cs
- WmlListAdapter.cs
- Visual.cs
- SafeCertificateContext.cs
- TypeBrowser.xaml.cs
- HtmlInputControl.cs
- NetCodeGroup.cs
- HashCryptoHandle.cs
- XdrBuilder.cs
- CoreSwitches.cs
- ContentElementAutomationPeer.cs
- FormViewInsertedEventArgs.cs
- FileDialog_Vista.cs
- XmlResolver.cs
- ProofTokenCryptoHandle.cs
- DataBindingsDialog.cs
- WebPartEditVerb.cs
- ContainsSearchOperator.cs
- CodeDOMUtility.cs
- SelectionProcessor.cs
- WindowClosedEventArgs.cs
- HttpModuleAction.cs
- BinaryOperationBinder.cs
- MenuCommandService.cs
- InputScopeConverter.cs
- RowTypePropertyElement.cs
- AssociationType.cs
- InfiniteIntConverter.cs
- _ConnectionGroup.cs
- ThreadExceptionEvent.cs
- ExpressionBinding.cs
- ColumnHeaderConverter.cs
- ErrorTolerantObjectWriter.cs
- Command.cs
- wmiprovider.cs
- DragCompletedEventArgs.cs
- COSERVERINFO.cs
- ComponentSerializationService.cs
- XmlRawWriter.cs
- AppSecurityManager.cs
- unsafenativemethodsother.cs
- TextServicesManager.cs
- FontDialog.cs
- ConnectionStringEditor.cs
- HTTPNotFoundHandler.cs
- EditorReuseAttribute.cs
- GenericRootAutomationPeer.cs
- DataGridViewBindingCompleteEventArgs.cs
- XmlImplementation.cs
- CodeDirectoryCompiler.cs
- FormsAuthenticationUserCollection.cs
- ProcessInfo.cs
- FloaterBaseParagraph.cs
- DataServiceRequestException.cs
- PageThemeBuildProvider.cs
- HostingEnvironmentException.cs
- ActivationServices.cs
- ReadContentAsBinaryHelper.cs
- PointF.cs
- MenuStrip.cs
- Assembly.cs
- Debugger.cs
- SignatureResourcePool.cs
- StrokeNodeData.cs
- ScrollBarRenderer.cs
- SignatureToken.cs
- MembershipUser.cs
- DecoderFallback.cs
- MouseButtonEventArgs.cs
- XamlPointCollectionSerializer.cs
- Selection.cs
- OleDbConnection.cs
- ProgressChangedEventArgs.cs
- SemanticResolver.cs
- figurelengthconverter.cs
- DataControlButton.cs
- newinstructionaction.cs
- PropVariant.cs
- CultureInfoConverter.cs
- XamlStyleSerializer.cs
- XmlSchemaDatatype.cs
- GridItemCollection.cs
- Site.cs
- QuaternionIndependentAnimationStorage.cs
- DbExpressionVisitor.cs
- EntityContainerAssociationSet.cs
- cookie.cs
- SqlDataSourceCache.cs
- StackBuilderSink.cs
- MessageUtil.cs
- EntityDataSourceDesigner.cs
- XamlPathDataSerializer.cs
- SafeSystemMetrics.cs
- ServiceBusyException.cs
- EventWaitHandle.cs
- HMAC.cs
- DocumentReferenceCollection.cs
- SqlParameterCollection.cs
- InputMethodStateChangeEventArgs.cs