Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / MeasureItemEvent.cs / 1305376 / MeasureItemEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// This event is sent by controls such as the ListBox or ComboBox that need users /// to tell them how large a given item is to be. /// public class MeasureItemEventArgs : EventArgs { private int itemHeight; private int itemWidth; private int index; private readonly System.Drawing.Graphics graphics; ////// /// public MeasureItemEventArgs(Graphics graphics, int index, int itemHeight) { this.graphics = graphics; this.index = index; this.itemHeight = itemHeight; this.itemWidth = 0; } ///[To be supplied.] ////// /// public MeasureItemEventArgs(Graphics graphics, int index) { this.graphics = graphics; this.index = index; this.itemHeight = 0; this.itemWidth = 0; } ///[To be supplied.] ////// /// A Graphics object to measure relative to. /// public System.Drawing.Graphics Graphics { get { return graphics; } } ////// /// The index of item for which the height/width is needed. /// public int Index { get { return index; } } ////// /// Where the recipient of the event should put the height of the /// item specified by the index. /// public int ItemHeight { get { return itemHeight; } set { itemHeight = value; } } ////// /// Where the recipient of the event should put the width of the /// item specified by the index. /// public int ItemWidth { get { return itemWidth; } set { itemWidth = value; } } } } // 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
- EpmSyndicationContentDeSerializer.cs
- SmiSettersStream.cs
- ContentType.cs
- ErrorView.xaml.cs
- NativeMethods.cs
- UIPermission.cs
- ReverseInheritProperty.cs
- Preprocessor.cs
- DataGridHelper.cs
- TdsEnums.cs
- WorkflowMarkupSerializerMapping.cs
- PathSegment.cs
- Speller.cs
- TableRowCollection.cs
- SoapExtensionReflector.cs
- ObfuscateAssemblyAttribute.cs
- ClientScriptManager.cs
- GridViewRowCollection.cs
- DbConnectionStringBuilder.cs
- BStrWrapper.cs
- BindingMAnagerBase.cs
- GroupBox.cs
- SelectionEditingBehavior.cs
- CodeArgumentReferenceExpression.cs
- updatecommandorderer.cs
- SimpleMailWebEventProvider.cs
- RTLAwareMessageBox.cs
- TileBrush.cs
- TreeChangeInfo.cs
- ListBoxItemAutomationPeer.cs
- EmissiveMaterial.cs
- DataDocumentXPathNavigator.cs
- NetworkAddressChange.cs
- FileFormatException.cs
- httpserverutility.cs
- Rijndael.cs
- BamlLocalizer.cs
- TreeChangeInfo.cs
- Descriptor.cs
- RowBinding.cs
- FormViewModeEventArgs.cs
- ELinqQueryState.cs
- WsatAdminException.cs
- WebExceptionStatus.cs
- VirtualDirectoryMappingCollection.cs
- Int32AnimationBase.cs
- UDPClient.cs
- EventLog.cs
- NamespaceCollection.cs
- DataRowComparer.cs
- FileIOPermission.cs
- SoapFormatterSinks.cs
- DependencyObjectProvider.cs
- SettingsPropertyValueCollection.cs
- SplineKeyFrames.cs
- IIS7WorkerRequest.cs
- NameGenerator.cs
- RemotingSurrogateSelector.cs
- RIPEMD160Managed.cs
- SqlClientMetaDataCollectionNames.cs
- Process.cs
- DataRowComparer.cs
- AssemblyNameUtility.cs
- CustomValidator.cs
- RuntimeComponentFilter.cs
- ReturnType.cs
- AnnouncementClient.cs
- ClientSponsor.cs
- CalendarButton.cs
- CultureInfo.cs
- XmlSchemaDocumentation.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- CompressEmulationStream.cs
- SessionIDManager.cs
- BridgeDataReader.cs
- Thumb.cs
- NonParentingControl.cs
- GridViewRowEventArgs.cs
- DefaultEventAttribute.cs
- TextChangedEventArgs.cs
- StrokeNodeOperations2.cs
- Vector3DAnimationBase.cs
- SiteMapNode.cs
- FlowchartDesigner.Helpers.cs
- XmlDeclaration.cs
- SocketInformation.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Substitution.cs
- SchemaElement.cs
- SolidColorBrush.cs
- ServiceContractDetailViewControl.cs
- DispatcherOperation.cs
- ItemContainerProviderWrapper.cs
- UpdatePanel.cs
- KnownBoxes.cs
- FontNamesConverter.cs
- Thread.cs
- SubclassTypeValidatorAttribute.cs
- WizardPanel.cs
- Vector3DIndependentAnimationStorage.cs