Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BindingWorker.cs
- AnimatedTypeHelpers.cs
- AssertFilter.cs
- Overlapped.cs
- ComponentEditorPage.cs
- XmlDownloadManager.cs
- NoneExcludedImageIndexConverter.cs
- HwndSourceParameters.cs
- WebServiceTypeData.cs
- InternalsVisibleToAttribute.cs
- DataServiceRequestOfT.cs
- HuffCodec.cs
- DesignTimeVisibleAttribute.cs
- FieldTemplateUserControl.cs
- ValidatingReaderNodeData.cs
- TreeNode.cs
- MenuCommandService.cs
- DataGridViewBindingCompleteEventArgs.cs
- ProviderIncompatibleException.cs
- KoreanLunisolarCalendar.cs
- HeaderCollection.cs
- ButtonFieldBase.cs
- SafeNativeMethods.cs
- SqlNotificationEventArgs.cs
- DocComment.cs
- Rights.cs
- ComplexObject.cs
- HMACSHA384.cs
- FragmentQuery.cs
- DecoderNLS.cs
- newitemfactory.cs
- VectorAnimation.cs
- EditCommandColumn.cs
- RootDesignerSerializerAttribute.cs
- SymmetricKeyWrap.cs
- TranslateTransform3D.cs
- AuthenticatingEventArgs.cs
- ToolStripTemplateNode.cs
- HatchBrush.cs
- ByteConverter.cs
- StylusButtonEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- ContentType.cs
- Stack.cs
- HMACRIPEMD160.cs
- Speller.cs
- SystemResourceHost.cs
- UdpRetransmissionSettings.cs
- EntityDescriptor.cs
- TemplateControlParser.cs
- Logging.cs
- ComponentEditorPage.cs
- QilChoice.cs
- UIElementIsland.cs
- GradientStop.cs
- ConfigurationStrings.cs
- ProcessingInstructionAction.cs
- BoundingRectTracker.cs
- FontDifferentiator.cs
- Operators.cs
- ArgumentNullException.cs
- BamlVersionHeader.cs
- ExpressionStringBuilder.cs
- StreamUpdate.cs
- EllipseGeometry.cs
- BaseAppDomainProtocolHandler.cs
- MsmqReceiveParameters.cs
- JsonEncodingStreamWrapper.cs
- RegisteredArrayDeclaration.cs
- ConnectionStringsSection.cs
- RecordsAffectedEventArgs.cs
- Parameter.cs
- NumberSubstitution.cs
- EntryPointNotFoundException.cs
- bidPrivateBase.cs
- DeliveryStrategy.cs
- MobileSysDescriptionAttribute.cs
- SupportingTokenSecurityTokenResolver.cs
- SocketAddress.cs
- NaturalLanguageHyphenator.cs
- smtpconnection.cs
- ContainerActivationHelper.cs
- PropertyGridEditorPart.cs
- ConnectionInterfaceCollection.cs
- RoleGroupCollection.cs
- AxisAngleRotation3D.cs
- SelectionGlyph.cs
- SqlDependencyListener.cs
- IntSecurity.cs
- MetadataFile.cs
- ZoneButton.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- LinqDataSource.cs
- SimpleHandlerBuildProvider.cs
- RegisteredHiddenField.cs
- TypeNameHelper.cs
- WebPartVerbCollection.cs
- DbException.cs
- XmlKeywords.cs
- ToolboxDataAttribute.cs