Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / MeasureItemEvent.cs / 1 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeViewHitTestInfo.cs
- BitArray.cs
- StrongNamePublicKeyBlob.cs
- UrlPath.cs
- DockPatternIdentifiers.cs
- X509Certificate.cs
- OleDbCommand.cs
- StrongNameMembershipCondition.cs
- EdmPropertyAttribute.cs
- BitmapPalette.cs
- CmsInterop.cs
- EventItfInfo.cs
- SiteOfOriginContainer.cs
- SiteMapNodeCollection.cs
- ViewManager.cs
- TextBox.cs
- PseudoWebRequest.cs
- XsltContext.cs
- Visual3D.cs
- XmlSchemaComplexContent.cs
- EventMetadata.cs
- httpstaticobjectscollection.cs
- _SSPIWrapper.cs
- ToolStripPanelCell.cs
- CodeGenerator.cs
- SiteMapDataSource.cs
- Sequence.cs
- CodeDOMUtility.cs
- NonceToken.cs
- FormsAuthenticationCredentials.cs
- UpdatePanelTriggerCollection.cs
- SmiMetaDataProperty.cs
- RequiredFieldValidator.cs
- StsCommunicationException.cs
- Rect3DValueSerializer.cs
- Utilities.cs
- Typeface.cs
- Splitter.cs
- formatter.cs
- ModuleConfigurationInfo.cs
- GroupBoxRenderer.cs
- ViewBase.cs
- TransformerTypeCollection.cs
- AppSecurityManager.cs
- UICuesEvent.cs
- ReflectTypeDescriptionProvider.cs
- FullTextBreakpoint.cs
- TileBrush.cs
- SHA1Managed.cs
- CodeTypeMemberCollection.cs
- StateChangeEvent.cs
- Win32PrintDialog.cs
- NavigationService.cs
- SqlCaseSimplifier.cs
- OutputCacheSection.cs
- XslUrlEditor.cs
- COM2ExtendedBrowsingHandler.cs
- DataControlImageButton.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MachineKeySection.cs
- PublishLicense.cs
- IBuiltInEvidence.cs
- MultiPageTextView.cs
- Dictionary.cs
- DirectoryInfo.cs
- ClientSettingsSection.cs
- QuadraticBezierSegment.cs
- DataGridViewCellCollection.cs
- TransformGroup.cs
- TemplateBuilder.cs
- AutoResizedEvent.cs
- ComplexBindingPropertiesAttribute.cs
- IQueryable.cs
- UndirectedGraph.cs
- PolyQuadraticBezierSegment.cs
- OracleCommand.cs
- RotateTransform.cs
- Brush.cs
- Misc.cs
- DataGridViewSelectedCellCollection.cs
- WorkflowElementDialog.cs
- ArrayWithOffset.cs
- TypeHelper.cs
- DataSet.cs
- _AutoWebProxyScriptWrapper.cs
- HideDisabledControlAdapter.cs
- TransactedReceiveData.cs
- TypeSystem.cs
- SqlErrorCollection.cs
- DoubleLinkList.cs
- SID.cs
- OutputCacheProfileCollection.cs
- AssertUtility.cs
- ListControlDesigner.cs
- SingleResultAttribute.cs
- CacheDependency.cs
- AssociationEndMember.cs
- LongTypeConverter.cs
- ScrollProperties.cs
- XslNumber.cs