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
- EmptyReadOnlyDictionaryInternal.cs
- GcSettings.cs
- TextRangeAdaptor.cs
- NodeCounter.cs
- LogArchiveSnapshot.cs
- RootBrowserWindow.cs
- CheckedPointers.cs
- BoundsDrawingContextWalker.cs
- SevenBitStream.cs
- Schema.cs
- BinaryObjectInfo.cs
- RuntimeConfigLKG.cs
- WebPartZoneCollection.cs
- ManualResetEvent.cs
- Matrix.cs
- RawTextInputReport.cs
- CombinedGeometry.cs
- Condition.cs
- SrgsGrammar.cs
- DataGridColumnReorderingEventArgs.cs
- XamlToRtfWriter.cs
- CommandCollectionEditor.cs
- ToolStripDropDownItemDesigner.cs
- TranslateTransform3D.cs
- GroupByExpressionRewriter.cs
- BlobPersonalizationState.cs
- Stroke.cs
- TreeBuilderBamlTranslator.cs
- AssemblyCacheEntry.cs
- StringHelper.cs
- ListViewDeleteEventArgs.cs
- NotCondition.cs
- SiteMapNode.cs
- Span.cs
- WebUtil.cs
- TagNameToTypeMapper.cs
- ServiceHttpHandlerFactory.cs
- CodeTypeOfExpression.cs
- AudioFileOut.cs
- DataGridViewLinkColumn.cs
- XmlSchema.cs
- LocationReferenceValue.cs
- StreamWithDictionary.cs
- hwndwrapper.cs
- WriteLine.cs
- EntityProxyFactory.cs
- ObjectDataSourceSelectingEventArgs.cs
- FileStream.cs
- FragmentQueryProcessor.cs
- OleDbSchemaGuid.cs
- AvTraceDetails.cs
- DataGridViewCellParsingEventArgs.cs
- DataSetFieldSchema.cs
- ManageRequest.cs
- NavigationExpr.cs
- SqlProviderUtilities.cs
- ParameterBuilder.cs
- OLEDB_Enum.cs
- _CacheStreams.cs
- InputMethodStateChangeEventArgs.cs
- DBConnection.cs
- AQNBuilder.cs
- XamlReader.cs
- XmlWrappingReader.cs
- HttpListenerContext.cs
- ManagedIStream.cs
- ServiceSecurityContext.cs
- TypeRestriction.cs
- ArraySet.cs
- Int16KeyFrameCollection.cs
- PageRequestManager.cs
- OleDbStruct.cs
- log.cs
- RoutedEventValueSerializer.cs
- DbInsertCommandTree.cs
- SqlAggregateChecker.cs
- Normalization.cs
- CodeSubDirectory.cs
- SemanticResolver.cs
- DesignTableCollection.cs
- ScriptResourceInfo.cs
- BridgeDataReader.cs
- ItemDragEvent.cs
- XslAstAnalyzer.cs
- DrawingServices.cs
- RegexCaptureCollection.cs
- SnapLine.cs
- ObjectSet.cs
- Interfaces.cs
- SchemaObjectWriter.cs
- RegionInfo.cs
- SettingsAttributeDictionary.cs
- TextRunProperties.cs
- MembershipAdapter.cs
- HtmlElement.cs
- DataObjectPastingEventArgs.cs
- serverconfig.cs
- Triplet.cs
- BeginEvent.cs
- Calendar.cs