Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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
- XPathEmptyIterator.cs
- UIAgentMonitorHandle.cs
- PlanCompilerUtil.cs
- CreateDataSourceDialog.cs
- HierarchicalDataTemplate.cs
- TemplateManager.cs
- AccessKeyManager.cs
- TitleStyle.cs
- UnicodeEncoding.cs
- PathStreamGeometryContext.cs
- WebBrowser.cs
- BitmapEffect.cs
- Stroke.cs
- BuildManagerHost.cs
- ToolStripSystemRenderer.cs
- CLSCompliantAttribute.cs
- GetReadStreamResult.cs
- IsolationInterop.cs
- nulltextcontainer.cs
- BufferCache.cs
- EntityContainerAssociationSet.cs
- DirectoryObjectSecurity.cs
- URL.cs
- HebrewCalendar.cs
- ScriptResourceAttribute.cs
- Int32CAMarshaler.cs
- NonVisualControlAttribute.cs
- PersonalizationStateInfo.cs
- QuaternionKeyFrameCollection.cs
- PackWebRequest.cs
- SqlBinder.cs
- ExpandSegment.cs
- DataTableMapping.cs
- ComponentResourceManager.cs
- SiteIdentityPermission.cs
- LocatorManager.cs
- GenericXmlSecurityToken.cs
- PowerStatus.cs
- Geometry.cs
- WebResourceAttribute.cs
- diagnosticsswitches.cs
- TemplatedAdorner.cs
- NameValueFileSectionHandler.cs
- SchemaImporterExtensionsSection.cs
- Pair.cs
- SQLByteStorage.cs
- ProtectedConfiguration.cs
- ApplicationDirectoryMembershipCondition.cs
- ContainerUIElement3D.cs
- BitmapSourceSafeMILHandle.cs
- VBCodeProvider.cs
- AutoGeneratedFieldProperties.cs
- ServiceDescriptionData.cs
- DataRow.cs
- ErrorActivity.cs
- Task.cs
- Utils.cs
- PipeStream.cs
- FunctionUpdateCommand.cs
- SerializationHelper.cs
- SystemInfo.cs
- SupportingTokenAuthenticatorSpecification.cs
- input.cs
- BindingNavigator.cs
- MSHTMLHost.cs
- Int16Converter.cs
- ListViewItemEventArgs.cs
- ConfigXmlReader.cs
- MultiplexingDispatchMessageFormatter.cs
- SortQuery.cs
- XomlDesignerLoader.cs
- Material.cs
- PropertyStore.cs
- XamlValidatingReader.cs
- DeferredSelectedIndexReference.cs
- HttpCachePolicyElement.cs
- ProxyHelper.cs
- HostVisual.cs
- DataServiceKeyAttribute.cs
- BooleanFacetDescriptionElement.cs
- SingletonConnectionReader.cs
- EmptyReadOnlyDictionaryInternal.cs
- TypedTableBaseExtensions.cs
- Transform3DGroup.cs
- ComponentCollection.cs
- Base64Encoder.cs
- ResourceDefaultValueAttribute.cs
- XmlArrayItemAttribute.cs
- ConnectionPointCookie.cs
- XmlSignatureProperties.cs
- WebService.cs
- EqualityComparer.cs
- DeadCharTextComposition.cs
- BinHexEncoding.cs
- Restrictions.cs
- BackgroundWorker.cs
- DataGridViewRow.cs
- IPCCacheManager.cs
- SerializationInfo.cs
- TimeManager.cs