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
- SmtpTransport.cs
- ObjectCacheSettings.cs
- TimeoutHelper.cs
- ConfigurationStrings.cs
- ToolStripAdornerWindowService.cs
- FontFaceLayoutInfo.cs
- Relationship.cs
- XmlMtomReader.cs
- GridViewRow.cs
- InternalEnumValidator.cs
- ProvidersHelper.cs
- Validator.cs
- DBSqlParserTableCollection.cs
- RenderData.cs
- Hyperlink.cs
- LayoutTable.cs
- DataGridViewColumnCollection.cs
- ObservableDictionary.cs
- CaseInsensitiveHashCodeProvider.cs
- Convert.cs
- Permission.cs
- ToolBar.cs
- ScriptRegistrationManager.cs
- HostingPreferredMapPath.cs
- SpellerStatusTable.cs
- XmlDictionaryReaderQuotas.cs
- NavigationWindow.cs
- TextRunCache.cs
- ToolStripPanelRow.cs
- PageCatalogPart.cs
- ProfileSettingsCollection.cs
- ConfigurationSettings.cs
- WindowsStatusBar.cs
- ipaddressinformationcollection.cs
- DataSourceControl.cs
- _CookieModule.cs
- SafeNativeMethods.cs
- ConfigurationValue.cs
- Pair.cs
- ConfigurationException.cs
- _BaseOverlappedAsyncResult.cs
- DetailsView.cs
- ResourceFallbackManager.cs
- PeerNameResolver.cs
- HttpApplicationFactory.cs
- ContentType.cs
- NativeMethods.cs
- IteratorDescriptor.cs
- PKCS1MaskGenerationMethod.cs
- LazyLoadBehavior.cs
- FirstMatchCodeGroup.cs
- VisualCollection.cs
- UnionCqlBlock.cs
- TraceLog.cs
- Helpers.cs
- HtmlInputHidden.cs
- CodeTypeReference.cs
- CustomSignedXml.cs
- Select.cs
- StringToken.cs
- ImageMapEventArgs.cs
- CollectionType.cs
- TimeStampChecker.cs
- MsdtcWrapper.cs
- UnescapedXmlDiagnosticData.cs
- DebugTrace.cs
- SystemIPAddressInformation.cs
- SiteIdentityPermission.cs
- SqlPersistenceProviderFactory.cs
- DataRecordInternal.cs
- KnownBoxes.cs
- CompletedAsyncResult.cs
- InputReferenceExpression.cs
- WCFServiceClientProxyGenerator.cs
- WindowsListViewScroll.cs
- LoginName.cs
- DtrList.cs
- XmlDigitalSignatureProcessor.cs
- PersonalizationAdministration.cs
- backend.cs
- XmlElementCollection.cs
- PolyQuadraticBezierSegment.cs
- FileSystemInfo.cs
- KnowledgeBase.cs
- PreviewKeyDownEventArgs.cs
- Currency.cs
- ItemsControlAutomationPeer.cs
- ReliableChannelFactory.cs
- Identifier.cs
- ChangeProcessor.cs
- ContextDataSourceContextData.cs
- PersistenceTypeAttribute.cs
- TextSegment.cs
- SafeThreadHandle.cs
- EntityDataSourceState.cs
- MsmqBindingElementBase.cs
- RemotingConfiguration.cs
- InternalDuplexBindingElement.cs
- SecurityKeyIdentifier.cs
- BinaryMessageFormatter.cs