property Items.ItemItalic(Item as HITEM) as Boolean

Retrieves or sets a value that indicates whether the item should appear in italic.

 TypeDescription 
   Item as HITEM A long expression that indicates the item's handle that uses italic font attribute.  
   Boolean A boolean expression that indicates whether the item should appear in italic.  

Use ItemBold, ItemItalic, ItemUnderline or ItemStrikeOut property to apply different font attributes to the item. Use the CellItalic, CellUnderline, CellBold or CellStrikeOut property to apply different font attributes to the cell. Use the CellValueFormat property to specify an HTML caption. Use the ConditionalFormats method to apply formats to a cell or range of cells, and have that formatting change depending on the value of the cell or the value of a formula.

The following VB sample makes italic the selected item:

Private Sub G2antt1_SelectionChanged()
    If Not (h = 0) Then G2antt1.Items.ItemItalic(h) = False
    h = G2antt1.Items.SelectedItem()
    G2antt1.Items.ItemItalic(h) = True
End Sub

The following VB sample makes italic the focused item:

With G2antt1.Items
    .ItemItalic(.FocusItem) = True
End With

The following C++ sample makes italic the focused item:

#include "Items.h"
CItems items = m_g2antt.GetItems();
items.SetItemItalic( items.GetFocusItem() , TRUE );

The following C# sample makes italic the focused item:

axG2antt1.Items.set_ItemItalic(axG2antt1.Items.FocusItem, true);

The following VB.NET sample makes italic the focused item:

With AxG2antt1.Items
    .ItemItalic(.FocusItem) = True
End With

The following VFP sample makes italic the focused item:

with thisform.G2antt1.Items
	.DefaultItem = .FocusItem
	.ItemItalic( 0 ) = .t.
endwith

Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.