Code:
/ FX-1434 / FX-1434 / 1.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
- DataPagerFieldCommandEventArgs.cs
- DesignerLabelAdapter.cs
- TableHeaderCell.cs
- METAHEADER.cs
- EventData.cs
- StyleTypedPropertyAttribute.cs
- UnicastIPAddressInformationCollection.cs
- PerfProviderCollection.cs
- NativeMethodsOther.cs
- XmlSchemas.cs
- VBIdentifierDesigner.xaml.cs
- OleAutBinder.cs
- SqlVisitor.cs
- SmiXetterAccessMap.cs
- SafeNativeMethodsOther.cs
- NegotiateStream.cs
- BlockUIContainer.cs
- DocumentViewerBaseAutomationPeer.cs
- ActionItem.cs
- SystemEvents.cs
- DataGridViewRowHeaderCell.cs
- TextEditorLists.cs
- Math.cs
- WaitForChangedResult.cs
- SmtpAuthenticationManager.cs
- TraceHwndHost.cs
- NodeInfo.cs
- XmlSchemaInclude.cs
- SmtpAuthenticationManager.cs
- WriteStateInfoBase.cs
- Pair.cs
- IDQuery.cs
- ActivatedMessageQueue.cs
- XmlSchemaCompilationSettings.cs
- safemediahandle.cs
- Transform3DCollection.cs
- CapabilitiesAssignment.cs
- PromptStyle.cs
- ParamArrayAttribute.cs
- SourceFileBuildProvider.cs
- Int64Converter.cs
- NetStream.cs
- ItemCheckEvent.cs
- Normalization.cs
- BinaryFormatterWriter.cs
- Normalization.cs
- FreezableDefaultValueFactory.cs
- EvidenceTypeDescriptor.cs
- XmlSchemaObject.cs
- PropertyMetadata.cs
- AssemblyBuilderData.cs
- ScrollChrome.cs
- DataRowCollection.cs
- PropertyChangingEventArgs.cs
- TaskbarItemInfo.cs
- XmlDataLoader.cs
- XomlDesignerLoader.cs
- FileLogRecordStream.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EastAsianLunisolarCalendar.cs
- EntityCollectionChangedParams.cs
- XmlSchemaExporter.cs
- ProcessInfo.cs
- QueryLifecycle.cs
- _UriTypeConverter.cs
- DataGridViewCellEventArgs.cs
- ByteStreamGeometryContext.cs
- AuthenticationModuleElementCollection.cs
- ProcessInfo.cs
- InputScopeNameConverter.cs
- CapiHashAlgorithm.cs
- XslException.cs
- DocumentOrderComparer.cs
- EnvelopedSignatureTransform.cs
- SpeechEvent.cs
- FileChangesMonitor.cs
- DoWorkEventArgs.cs
- ServiceContractListItem.cs
- Base64Stream.cs
- RenderCapability.cs
- SqlConnectionPoolGroupProviderInfo.cs
- VisualTreeUtils.cs
- DbProviderServices.cs
- CodeStatement.cs
- CurrentTimeZone.cs
- GetChildSubtree.cs
- RequestChannelBinder.cs
- NameNode.cs
- Internal.cs
- IndentedTextWriter.cs
- ColumnHeader.cs
- EntityDataSourceEntityTypeFilterItem.cs
- PenLineCapValidation.cs
- AxisAngleRotation3D.cs
- SqlConnectionPoolProviderInfo.cs
- ObjectTypeMapping.cs
- DocumentProperties.cs
- DataTableReaderListener.cs
- DataShape.cs
- HashRepartitionEnumerator.cs