Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- StartUpEventArgs.cs
- SelectionItemProviderWrapper.cs
- ObjectDataSourceEventArgs.cs
- TextRangeAdaptor.cs
- MSAAWinEventWrap.cs
- HttpCapabilitiesEvaluator.cs
- AnonymousIdentificationModule.cs
- PropertyExpression.cs
- SHA1Cng.cs
- CompositeTypefaceMetrics.cs
- SmiContextFactory.cs
- ImageKeyConverter.cs
- ProcessHostFactoryHelper.cs
- AdjustableArrowCap.cs
- BooleanFunctions.cs
- PointLightBase.cs
- SessionEndedEventArgs.cs
- ElementsClipboardData.cs
- ParenthesizePropertyNameAttribute.cs
- SByteStorage.cs
- FunctionDetailsReader.cs
- CodeNamespaceImport.cs
- translator.cs
- ILGen.cs
- PageParser.cs
- SafeRightsManagementQueryHandle.cs
- Lookup.cs
- OptimizedTemplateContentHelper.cs
- AccessorTable.cs
- CompensationDesigner.cs
- JsonFormatGeneratorStatics.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- ReversePositionQuery.cs
- FormViewDeleteEventArgs.cs
- NGCPageContentSerializerAsync.cs
- EntityTransaction.cs
- SoapMessage.cs
- OracleDateTime.cs
- webproxy.cs
- DeflateStreamAsyncResult.cs
- VolatileResourceManager.cs
- IsolatedStorageFileStream.cs
- RegexStringValidatorAttribute.cs
- DataGridViewComboBoxCell.cs
- CollectionConverter.cs
- SignatureToken.cs
- RedirectionProxy.cs
- MILUtilities.cs
- ScaleTransform.cs
- FrameDimension.cs
- ViewCellRelation.cs
- ProcessManager.cs
- SqlInfoMessageEvent.cs
- _NTAuthentication.cs
- Group.cs
- VirtualizingPanel.cs
- XmlElementElementCollection.cs
- ClosableStream.cs
- CornerRadius.cs
- Vector3DCollection.cs
- SymbolTable.cs
- ClientProxyGenerator.cs
- DataSetMappper.cs
- IfElseDesigner.xaml.cs
- TextOptionsInternal.cs
- PathFigure.cs
- XmlSchemaProviderAttribute.cs
- DataSet.cs
- RefreshEventArgs.cs
- XPathScanner.cs
- CompositionCommandSet.cs
- _RequestCacheProtocol.cs
- ConstructorExpr.cs
- ProvidePropertyAttribute.cs
- Context.cs
- XmlKeywords.cs
- DataControlPagerLinkButton.cs
- HttpClientCertificate.cs
- KnownTypes.cs
- GCHandleCookieTable.cs
- HtmlTableCell.cs
- ToolStripSeparator.cs
- Html32TextWriter.cs
- _WebProxyDataBuilder.cs
- DataColumnMapping.cs
- Utils.cs
- TransactionChannelFaultConverter.cs
- HwndStylusInputProvider.cs
- SchemaMerger.cs
- DocumentEventArgs.cs
- XmlSchemaSequence.cs
- WebBrowserSiteBase.cs
- _CacheStreams.cs
- ToolStripItemCollection.cs
- XmlUrlEditor.cs
- MatrixCamera.cs
- Renderer.cs
- HighlightVisual.cs
- BasicCellRelation.cs
- JsonGlobals.cs