Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EditorPartDesigner.cs
- OdbcCommand.cs
- Native.cs
- Emitter.cs
- CaseCqlBlock.cs
- SiteMapNodeCollection.cs
- MoveSizeWinEventHandler.cs
- HashHelper.cs
- Html32TextWriter.cs
- UriTemplateTrieNode.cs
- ServiceBehaviorAttribute.cs
- AttachmentCollection.cs
- HostedTransportConfigurationManager.cs
- EventSinkHelperWriter.cs
- DataSourceSelectArguments.cs
- ScriptComponentDescriptor.cs
- CounterCreationDataConverter.cs
- EncodingInfo.cs
- AnnotationResourceCollection.cs
- XmlComplianceUtil.cs
- UIEndRequest.cs
- ListChangedEventArgs.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- documentation.cs
- MemberHolder.cs
- SubqueryRules.cs
- PropertyBuilder.cs
- GridPatternIdentifiers.cs
- UseAttributeSetsAction.cs
- HandlerBase.cs
- ModelItemCollectionImpl.cs
- HttpContextServiceHost.cs
- InstanceKeyCollisionException.cs
- GregorianCalendar.cs
- UrlEncodedParameterWriter.cs
- DecoderFallback.cs
- RenderDataDrawingContext.cs
- ItemList.cs
- Events.cs
- mediaeventshelper.cs
- SecUtil.cs
- SchemaObjectWriter.cs
- CompositeScriptReference.cs
- PriorityQueue.cs
- TrayIconDesigner.cs
- DataGridViewRowEventArgs.cs
- CommandValueSerializer.cs
- CultureTableRecord.cs
- ErrorWebPart.cs
- HttpStreamFormatter.cs
- AnimationStorage.cs
- OracleTransaction.cs
- FormattedText.cs
- TemplateBuilder.cs
- EntityCommand.cs
- SQLInt32.cs
- path.cs
- ColorContextHelper.cs
- SqlReorderer.cs
- ServiceReference.cs
- DeflateStream.cs
- CaseInsensitiveHashCodeProvider.cs
- documentsequencetextpointer.cs
- Int32.cs
- ApplicationSettingsBase.cs
- DataGridSortCommandEventArgs.cs
- RuleRef.cs
- HttpListenerElement.cs
- HttpCacheParams.cs
- AutoGeneratedFieldProperties.cs
- DrawingContextDrawingContextWalker.cs
- MethodRental.cs
- XPathMessageFilterElement.cs
- Instrumentation.cs
- ScriptComponentDescriptor.cs
- DesignTimeTemplateParser.cs
- IntegrationExceptionEventArgs.cs
- MimeTypePropertyAttribute.cs
- DbConnectionInternal.cs
- AttachInfo.cs
- QueryOptionExpression.cs
- validationstate.cs
- QuadraticBezierSegment.cs
- GeneralTransform.cs
- SimpleMailWebEventProvider.cs
- AttributeCollection.cs
- Line.cs
- ServiceDescriptionContext.cs
- AgileSafeNativeMemoryHandle.cs
- DataColumnChangeEvent.cs
- XmlRawWriterWrapper.cs
- FrameworkObject.cs
- DocumentPageHost.cs
- CodeBlockBuilder.cs
- Dictionary.cs
- AtomParser.cs
- Transform3DGroup.cs
- ScriptingJsonSerializationSection.cs
- HttpWebRequest.cs
- DocumentSequence.cs