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
- RouteTable.cs
- SqlError.cs
- TraceLog.cs
- DbParameterCollectionHelper.cs
- CategoryGridEntry.cs
- ReferenceEqualityComparer.cs
- ChtmlCommandAdapter.cs
- SettingsBindableAttribute.cs
- SuppressMessageAttribute.cs
- GeometryValueSerializer.cs
- XomlSerializationHelpers.cs
- LinkTarget.cs
- SerializationAttributes.cs
- SqlXmlStorage.cs
- iisPickupDirectory.cs
- NullRuntimeConfig.cs
- SafeLibraryHandle.cs
- AdPostCacheSubstitution.cs
- SQLGuidStorage.cs
- SmiEventStream.cs
- streamingZipPartStream.cs
- Rect3DValueSerializer.cs
- webeventbuffer.cs
- Token.cs
- UdpTransportSettingsElement.cs
- ImpersonateTokenRef.cs
- TypedOperationInfo.cs
- FileLoadException.cs
- StrongNameHelpers.cs
- FormClosedEvent.cs
- SelectedDatesCollection.cs
- SpinLock.cs
- FontEmbeddingManager.cs
- PropertyPathWorker.cs
- ParallelDesigner.xaml.cs
- Style.cs
- TransmissionStrategy.cs
- QuotedPrintableStream.cs
- SystemMulticastIPAddressInformation.cs
- TabletDeviceInfo.cs
- TextTreePropertyUndoUnit.cs
- TagNameToTypeMapper.cs
- _AutoWebProxyScriptWrapper.cs
- ProxySimple.cs
- BaseCodeDomTreeGenerator.cs
- MissingMethodException.cs
- PointUtil.cs
- PreviewPageInfo.cs
- WindowsIdentity.cs
- InlineObject.cs
- SQLBytes.cs
- SqlTypeConverter.cs
- UnsignedPublishLicense.cs
- ThumbButtonInfo.cs
- DesignerWidgets.cs
- PopupRootAutomationPeer.cs
- GZipStream.cs
- DesignerVerb.cs
- ObjectSet.cs
- RoleManagerEventArgs.cs
- XmlnsPrefixAttribute.cs
- CommandSet.cs
- ClientTarget.cs
- ListViewInsertEventArgs.cs
- HuffModule.cs
- FontStyleConverter.cs
- CredentialCache.cs
- Converter.cs
- ElementHostAutomationPeer.cs
- HtmlShimManager.cs
- ButtonBase.cs
- EntityClassGenerator.cs
- XmlUtil.cs
- WebPartDisplayModeCancelEventArgs.cs
- IncrementalReadDecoders.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- OrderByBuilder.cs
- ErrorView.xaml.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- Perspective.cs
- SafeViewOfFileHandle.cs
- ConditionalExpression.cs
- _UriSyntax.cs
- StateWorkerRequest.cs
- GiveFeedbackEventArgs.cs
- OleServicesContext.cs
- TextServicesManager.cs
- StructuredTypeEmitter.cs
- VisualStyleInformation.cs
- TraceData.cs
- WorkflowElementDialogWindow.xaml.cs
- WsdlParser.cs
- DataGridDesigner.cs
- EnvelopedPkcs7.cs
- DateTimeConstantAttribute.cs
- FilePresentation.cs
- MemberDescriptor.cs
- XmlDocumentSerializer.cs
- Emitter.cs
- XPathNodeHelper.cs