<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_by_API%2FSystem.Windows.Forms%2FMeasureItemEventArgs</id>
		<title>VB.Net by API/System.Windows.Forms/MeasureItemEventArgs - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_by_API%2FSystem.Windows.Forms%2FMeasureItemEventArgs"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;action=history"/>
		<updated>2026-04-06T02:38:25Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=2674&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=2674&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:16Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=2675&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=2675&amp;oldid=prev"/>
				<updated>2010-05-26T12:51:54Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MeasureItemEventArgs.ItemHeight==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;   &lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Reflection&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.IO&lt;br /&gt;
&lt;br /&gt;
public class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
      Dim form1 As Form = New Form1&lt;br /&gt;
      Application.Run(form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot;Windows Form Designer generated code&amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu&lt;br /&gt;
    Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.Container&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents Red As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents Green As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents Blue As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents Yellow As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents Black As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents White As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents AlignLeft As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents AlignCenter As System.Windows.Forms.MenuItem&lt;br /&gt;
    Friend WithEvents AlignRight As System.Windows.Forms.MenuItem&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.MainMenu1 = New System.Windows.Forms.MainMenu()&lt;br /&gt;
        Me.MenuItem1 = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.Red = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.Green = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.Blue = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.Yellow = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.Black = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.White = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.MenuItem2 = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.AlignLeft = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.AlignCenter = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        Me.AlignRight = New System.Windows.Forms.MenuItem()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MainMenu1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem1, Me.MenuItem2})&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MenuItem1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MenuItem1.Index = 0&lt;br /&gt;
        Me.MenuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.Red, Me.Green, Me.Blue, Me.Yellow, Me.Black, Me.White})&lt;br /&gt;
        Me.MenuItem1.Text = &amp;quot;Color&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Red&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Red.Index = 0&lt;br /&gt;
        Me.Red.OwnerDraw = True&lt;br /&gt;
        Me.Red.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Green&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Green.Index = 1&lt;br /&gt;
        Me.Green.OwnerDraw = True&lt;br /&gt;
        Me.Green.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Blue&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Blue.Index = 2&lt;br /&gt;
        Me.Blue.OwnerDraw = True&lt;br /&gt;
        Me.Blue.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Yellow&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Yellow.Index = 3&lt;br /&gt;
        Me.Yellow.OwnerDraw = True&lt;br /&gt;
        Me.Yellow.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Black&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Black.Index = 4&lt;br /&gt;
        Me.Black.OwnerDraw = True&lt;br /&gt;
        Me.Black.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;White&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.White.Index = 5&lt;br /&gt;
        Me.White.OwnerDraw = True&lt;br /&gt;
        Me.White.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MenuItem2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MenuItem2.Index = 1&lt;br /&gt;
        Me.MenuItem2.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.AlignLeft, Me.AlignCenter, Me.AlignRight})&lt;br /&gt;
        Me.MenuItem2.Text = &amp;quot;Alignment&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;AlignLeft&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AlignLeft.Index = 0&lt;br /&gt;
        Me.AlignLeft.OwnerDraw = True&lt;br /&gt;
        Me.AlignLeft.Text = &amp;quot;Left&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;AlignCenter&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AlignCenter.Index = 1&lt;br /&gt;
        Me.AlignCenter.OwnerDraw = True&lt;br /&gt;
        Me.AlignCenter.Text = &amp;quot;Center&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;AlignRight&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AlignRight.Index = 2&lt;br /&gt;
        Me.AlignRight.OwnerDraw = True&lt;br /&gt;
        Me.AlignRight.Text = &amp;quot;Right&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 129)&lt;br /&gt;
        Me.Menu = Me.MainMenu1&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Owner-Drawn Menu&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Dim currentFont As Font&lt;br /&gt;
    Private Sub Red_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles Red.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        e.Graphics.FillRectangle(Brushes.Red, R)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Red_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles Red.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(80, 18)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Green_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles Red.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(80, 18)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Green_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles Green.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        e.Graphics.FillRectangle(Brushes.Green, R)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Blue_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles Blue.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(80, 18)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Blue_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles Blue.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        e.Graphics.FillRectangle(Brushes.Blue, R)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Yellow_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles Yellow.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(80, 18)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Yellow_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles Yellow.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        e.Graphics.FillRectangle(Brushes.Yellow, R)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub White_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles White.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(80, 18)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub White_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles White.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        e.Graphics.FillRectangle(Brushes.White, R)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Black_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles Black.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(80, 18)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Black_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles Black.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        e.Graphics.FillRectangle(Brushes.Black, R)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub AlignLeft_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles AlignLeft.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(40, 14)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub AlignLeft_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles AlignLeft.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        Dim strfmt As New StringFormat()&lt;br /&gt;
        strfmt.Alignment = StringAlignment.Near&lt;br /&gt;
        e.Graphics.DrawString(&amp;quot;Left&amp;quot;, Me.Font, Brushes.Black, R, strfmt)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub AlignRight_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles AlignRight.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(40, 14)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub AlignRight_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles AlignRight.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        Dim strfmt As New StringFormat()&lt;br /&gt;
        strfmt.Alignment = StringAlignment.Far&lt;br /&gt;
        e.Graphics.DrawString(&amp;quot;Right&amp;quot;, Me.Font, Brushes.Black, R, strfmt)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub AlignCenter_MeasureItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles AlignCenter.MeasureItem&lt;br /&gt;
        Dim itemSize As SizeF&lt;br /&gt;
        itemSize = New SizeF(40, 14)&lt;br /&gt;
        e.ItemHeight = itemSize.Height&lt;br /&gt;
        e.ItemWidth = itemSize.Width&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub AlignCenter_DrawItem(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles AlignCenter.DrawItem&lt;br /&gt;
        Dim R As New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)&lt;br /&gt;
        Dim strfmt As New StringFormat()&lt;br /&gt;
        strfmt.Alignment = StringAlignment.Center&lt;br /&gt;
        e.Graphics.DrawString(&amp;quot;Center&amp;quot;, Me.Font, Brushes.Black, R, strfmt)&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub Alignment_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AlignCenter.Click, AlignLeft.Click, AlignRight.Click,Red.Click,Green.Click,Blue.Click,Yellow.Click,Black.Click,White.Click&lt;br /&gt;
        MessageBox.Show(sender.Text)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>