Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- /* */ 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
- IntranetCredentialPolicy.cs
- ReferentialConstraint.cs
- LoginViewDesigner.cs
- XmlAnyElementAttributes.cs
- DataGridViewElement.cs
- MasterPageBuildProvider.cs
- BookmarkList.cs
- SoapEnumAttribute.cs
- NetWebProxyFinder.cs
- ProviderUtil.cs
- Panel.cs
- XmlAnyElementAttribute.cs
- SettingsProviderCollection.cs
- TokenBasedSetEnumerator.cs
- ErrorCodes.cs
- Model3D.cs
- IDReferencePropertyAttribute.cs
- StructuralCache.cs
- DataBinder.cs
- WebConfigurationManager.cs
- CompareValidator.cs
- Literal.cs
- CommonDialog.cs
- CaseInsensitiveOrdinalStringComparer.cs
- StrongNameKeyPair.cs
- BitmapSizeOptions.cs
- PageBuildProvider.cs
- IPPacketInformation.cs
- SqlDataReader.cs
- QueryReaderSettings.cs
- XPathDocumentIterator.cs
- PagesSection.cs
- MethodRental.cs
- UnmanagedMemoryStreamWrapper.cs
- CheckBoxField.cs
- RegexGroup.cs
- ListViewAutomationPeer.cs
- CoreSwitches.cs
- ServicesUtilities.cs
- XPathEmptyIterator.cs
- ToolBarOverflowPanel.cs
- GridItemCollection.cs
- TriggerActionCollection.cs
- EventLogConfiguration.cs
- XmlElementAttributes.cs
- MessageQueueAccessControlEntry.cs
- ControlBindingsCollection.cs
- Version.cs
- ContextToken.cs
- KeyInstance.cs
- PerformanceCounterCategory.cs
- NonBatchDirectoryCompiler.cs
- EventData.cs
- DefaultPropertyAttribute.cs
- TimeZoneInfo.cs
- MessageQueueException.cs
- AppDomainGrammarProxy.cs
- BaseTemplateBuildProvider.cs
- PropertyGridEditorPart.cs
- UmAlQuraCalendar.cs
- TextServicesLoader.cs
- TaskFormBase.cs
- HttpWebRequestElement.cs
- HostUtils.cs
- ListViewInsertionMark.cs
- ParenExpr.cs
- ConnectionsZone.cs
- ColumnHeaderConverter.cs
- CodeCommentStatement.cs
- BamlWriter.cs
- DataControlCommands.cs
- SiteMapPath.cs
- SecureUICommand.cs
- X509Chain.cs
- SHA1.cs
- EncodingDataItem.cs
- XmlNamespaceDeclarationsAttribute.cs
- TemplateInstanceAttribute.cs
- FamilyMapCollection.cs
- Formatter.cs
- StructuredCompositeActivityDesigner.cs
- MetadataItemSerializer.cs
- TracePayload.cs
- SystemColors.cs
- AssemblyAssociatedContentFileAttribute.cs
- Duration.cs
- PresentationSource.cs
- AppDomainManager.cs
- LinkConverter.cs
- TypeUnloadedException.cs
- SelectionItemProviderWrapper.cs
- XmlSerializableServices.cs
- Listbox.cs
- QueryActivatableWorkflowsCommand.cs
- HtmlTableRow.cs
- XmlQuerySequence.cs
- ExpressionVisitor.cs
- LinkButton.cs
- DesignerCalendarAdapter.cs
- UnsafeNativeMethodsMilCoreApi.cs