Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ProxyWebPartManager.cs
- SmtpAuthenticationManager.cs
- InvalidOperationException.cs
- Select.cs
- RSAPKCS1SignatureFormatter.cs
- BaseCAMarshaler.cs
- CollectionChange.cs
- figurelength.cs
- DefaultMemberAttribute.cs
- ApplicationException.cs
- ButtonField.cs
- Formatter.cs
- XmlSchemaObjectTable.cs
- NextPreviousPagerField.cs
- Update.cs
- __Filters.cs
- CultureTableRecord.cs
- JavaScriptObjectDeserializer.cs
- ObjectStorage.cs
- LocalizationComments.cs
- Pkcs7Signer.cs
- GridLength.cs
- WindowsFormsSynchronizationContext.cs
- FacetDescriptionElement.cs
- _NegoState.cs
- Font.cs
- _RequestCacheProtocol.cs
- CodeGenerator.cs
- InkSerializer.cs
- ViewGenerator.cs
- XmlEntity.cs
- Schedule.cs
- ReferentialConstraint.cs
- BindingSource.cs
- GradientStopCollection.cs
- TextStore.cs
- ValueConversionAttribute.cs
- Lasso.cs
- Panel.cs
- HttpStreamFormatter.cs
- GlobalItem.cs
- DataGridViewDataErrorEventArgs.cs
- CompilationUtil.cs
- CodeDirectoryCompiler.cs
- BaseDataListComponentEditor.cs
- httpserverutility.cs
- CodeArrayCreateExpression.cs
- TableItemStyle.cs
- Variable.cs
- SingleTagSectionHandler.cs
- TypedElement.cs
- ContentType.cs
- XmlEnumAttribute.cs
- AddDataControlFieldDialog.cs
- SmiEventSink_Default.cs
- wgx_sdk_version.cs
- SafePEFileHandle.cs
- SectionVisual.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ObjectSet.cs
- TypeDependencyAttribute.cs
- PeerContact.cs
- HttpDigestClientCredential.cs
- XmlComplianceUtil.cs
- OdbcReferenceCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- Fonts.cs
- DetailsViewInsertEventArgs.cs
- ClipboardProcessor.cs
- StreamGeometryContext.cs
- MsmqIntegrationInputMessage.cs
- WindowsSecurityTokenAuthenticator.cs
- DrawItemEvent.cs
- Wildcard.cs
- FixedTextView.cs
- EmptyControlCollection.cs
- HttpCookie.cs
- PenThreadPool.cs
- WrapPanel.cs
- ProcessHostFactoryHelper.cs
- SoapHeaders.cs
- unitconverter.cs
- SerialReceived.cs
- AssemblyAttributes.cs
- AssemblyHash.cs
- SmiRecordBuffer.cs
- CompositeCollection.cs
- ProgressBar.cs
- QueryTreeBuilder.cs
- Helper.cs
- Matrix3D.cs
- SqlComparer.cs
- ProgressiveCrcCalculatingStream.cs
- RTLAwareMessageBox.cs
- IImplicitResourceProvider.cs
- HTMLTextWriter.cs
- TypeDescriptionProviderAttribute.cs
- ServiceOperationInfoTypeConverter.cs
- LoginCancelEventArgs.cs
- CloseSequence.cs