Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Design / PaintValueEventArgs.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- errorpatternmatcher.cs
- HtmlElementEventArgs.cs
- EnumUnknown.cs
- CollectionViewGroupInternal.cs
- SAPICategories.cs
- DelegateHelpers.cs
- RangeValueProviderWrapper.cs
- TreeViewEvent.cs
- WebBaseEventKeyComparer.cs
- NameValueSectionHandler.cs
- ProgressiveCrcCalculatingStream.cs
- ScalarType.cs
- NameSpaceEvent.cs
- CompilerCollection.cs
- DefaultParameterValueAttribute.cs
- ReflectTypeDescriptionProvider.cs
- UInt64Converter.cs
- EntityViewGenerator.cs
- ZipIOExtraFieldPaddingElement.cs
- StylusPlugin.cs
- VisualBrush.cs
- RtfToken.cs
- UrlMappingsSection.cs
- ObjectItemCollection.cs
- DataServiceKeyAttribute.cs
- TaskFileService.cs
- AsmxEndpointPickerExtension.cs
- FilterException.cs
- SQLMoney.cs
- SineEase.cs
- ApplicationManager.cs
- PropertyChangingEventArgs.cs
- CqlErrorHelper.cs
- XdrBuilder.cs
- DeflateInput.cs
- FamilyTypefaceCollection.cs
- HttpInputStream.cs
- ByteAnimation.cs
- PageTheme.cs
- DataGridPageChangedEventArgs.cs
- ChineseLunisolarCalendar.cs
- ExpressionConverter.cs
- MaterialCollection.cs
- TableLayout.cs
- PageCatalogPart.cs
- FixedLineResult.cs
- RemoteWebConfigurationHost.cs
- Stream.cs
- ZoomPercentageConverter.cs
- ConnectionStringSettings.cs
- AssemblyResourceLoader.cs
- ZipIOCentralDirectoryFileHeader.cs
- SqlDependency.cs
- CompositeControlDesigner.cs
- ControlCachePolicy.cs
- BadImageFormatException.cs
- DocumentCollection.cs
- KeyPullup.cs
- HierarchicalDataSourceConverter.cs
- AstTree.cs
- CriticalFinalizerObject.cs
- AllMembershipCondition.cs
- SystemNetworkInterface.cs
- AssociationSetEnd.cs
- BinaryEditor.cs
- SqlCommandSet.cs
- DragDropHelper.cs
- WebPageTraceListener.cs
- MasterPageParser.cs
- WebConfigurationHost.cs
- EndPoint.cs
- UpdateEventArgs.cs
- WmlValidationSummaryAdapter.cs
- ListViewItem.cs
- BrowserCapabilitiesFactory35.cs
- StreamUpgradeBindingElement.cs
- RequestCacheManager.cs
- PolyLineSegmentFigureLogic.cs
- CounterSampleCalculator.cs
- StreamingContext.cs
- PointCollection.cs
- JpegBitmapDecoder.cs
- BitmapEffectDrawing.cs
- EdmRelationshipRoleAttribute.cs
- TextElementCollectionHelper.cs
- ClassHandlersStore.cs
- MarkerProperties.cs
- FacetDescriptionElement.cs
- PenContexts.cs
- PageSetupDialog.cs
- HttpCacheVaryByContentEncodings.cs
- OdbcUtils.cs
- MyContact.cs
- NullableLongAverageAggregationOperator.cs
- EditingContext.cs
- regiisutil.cs
- VisualBrush.cs
- DefaultMemberAttribute.cs
- RangeContentEnumerator.cs
- UrlPath.cs