Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CultureInfoConverter.cs
- AssemblyResourceLoader.cs
- StrongNameKeyPair.cs
- SafeFileHandle.cs
- CreateDataSourceDialog.cs
- HttpWriter.cs
- oledbmetadatacolumnnames.cs
- ButtonFlatAdapter.cs
- DataComponentNameHandler.cs
- TranslateTransform3D.cs
- AuthStoreRoleProvider.cs
- ContextQuery.cs
- SqlDataSourceStatusEventArgs.cs
- ISFTagAndGuidCache.cs
- BuildResultCache.cs
- OleDbConnectionInternal.cs
- CheckPair.cs
- VarRemapper.cs
- GridViewDeleteEventArgs.cs
- InternalCache.cs
- AgileSafeNativeMemoryHandle.cs
- SqlSupersetValidator.cs
- ValidatorCompatibilityHelper.cs
- ColorTranslator.cs
- AuthenticationException.cs
- DodSequenceMerge.cs
- BindingCompleteEventArgs.cs
- AbstractExpressions.cs
- ResourceWriter.cs
- ScriptManager.cs
- QilBinary.cs
- XmlEntity.cs
- ImageFormatConverter.cs
- ToolboxItemSnapLineBehavior.cs
- TypeRestriction.cs
- XpsResource.cs
- NumericPagerField.cs
- BoundsDrawingContextWalker.cs
- TypeInitializationException.cs
- MimeMultiPart.cs
- KeyGesture.cs
- SizeAnimationBase.cs
- CodeDomSerializer.cs
- OutputCacheProfile.cs
- WebPartDescriptionCollection.cs
- ChangeInterceptorAttribute.cs
- MarkerProperties.cs
- PageStatePersister.cs
- ConfigXmlElement.cs
- AccessViolationException.cs
- SerializationSectionGroup.cs
- ProfileElement.cs
- WeakKeyDictionary.cs
- OdbcCommand.cs
- CommandConverter.cs
- AuthenticationSection.cs
- FixedSOMLineCollection.cs
- WebPartZoneBase.cs
- EventTask.cs
- MeasureItemEvent.cs
- NameSpaceEvent.cs
- SchemaObjectWriter.cs
- PropertyCondition.cs
- InlinedAggregationOperator.cs
- RecognizedPhrase.cs
- TrackingServices.cs
- NamespaceEmitter.cs
- COAUTHINFO.cs
- UpdatePanelTriggerCollection.cs
- ZipPackage.cs
- ScriptDescriptor.cs
- UserInitiatedNavigationPermission.cs
- StringWriter.cs
- MemoryStream.cs
- SystemIcmpV6Statistics.cs
- XmlSerializableWriter.cs
- ReaderOutput.cs
- BridgeDataReader.cs
- ToolStripGripRenderEventArgs.cs
- SubMenuStyleCollectionEditor.cs
- ProfileModule.cs
- TextServicesCompartment.cs
- DataGridViewCellValueEventArgs.cs
- SqlWriter.cs
- CollectionExtensions.cs
- URLMembershipCondition.cs
- PersistChildrenAttribute.cs
- GenerateTemporaryTargetAssembly.cs
- DeclaredTypeElementCollection.cs
- SafeMILHandle.cs
- InfoCardSchemas.cs
- SafeNativeMethods.cs
- MLangCodePageEncoding.cs
- SessionStateSection.cs
- DocumentApplicationJournalEntryEventArgs.cs
- TextEncodedRawTextWriter.cs
- TableLayoutColumnStyleCollection.cs
- ScriptModule.cs
- SafeTimerHandle.cs
- Hex.cs