property Item.Italic as Boolean
Specifies whether the item's caption should appear in italic.

TypeDescription
Boolean A Boolean expression that specifies whether the item's caption is shown in italic.
By default, the Italic property is False. Use the Italic property to show the item's caption in italic. The Caption property indicates the HTML caption to be shown on the item. The <i> HTML tag can be used on the item's Caption property to specify different parts of the caption to be shown in italic.

How can I show the item in italics?

VBA (MS Access, Excell...)

With Ribbon1
	With .Items
		.Add("Item").Italic = True
		.Add "<i>Item</i>"
		.Add("").ToString = "Item[itl]"
	End With
	.Refresh 
End With

VB6

With Ribbon1
	With .Items
		.Add("Item").Italic = True
		.Add "<i>Item</i>"
		.Add("").ToString = "Item[itl]"
	End With
	.Refresh 
End With

VB.NET

With Exribbon1
	With .Items
		.Add("Item").Italic = True
		.Add("<i>Item</i>")
		.Add("").ToString = "Item[itl]"
	End With
	.Refresh()
End With

VB.NET for /COM

With AxRibbon1
	With .Items
		.Add("Item").Italic = True
		.Add("<i>Item</i>")
		.Add("").ToString = "Item[itl]"
	End With
	.Refresh()
End With

C++

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXRIBBONLib' for the library: 'ExRibbon 1.0 Control Library'

	#import <ExRibbon.dll>
	using namespace EXRIBBONLib;
*/
EXRIBBONLib::IRibbonPtr spRibbon1 = GetDlgItem(IDC_RIBBON1)->GetControlUnknown();
EXRIBBONLib::IItemsPtr var_Items = spRibbon1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutItalic(VARIANT_TRUE);
	var_Items->Add(L"<i>Item</i>",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[itl]");
spRibbon1->Refresh();

C++ Builder

Exribbonlib_tlb::IItemsPtr var_Items = Ribbon1->Items;
	var_Items->Add(L"Item",TNoParam(),TNoParam())->Italic = true;
	var_Items->Add(L"<i>Item</i>",TNoParam(),TNoParam());
	var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[itl]";
Ribbon1->Refresh();

C#

exontrol.EXRIBBONLib.Items var_Items = exribbon1.Items;
	var_Items.Add("Item",null,null).Italic = true;
	var_Items.Add("<i>Item</i>",null,null);
	var_Items.Add("",null,null).ToString = "Item[itl]";
exribbon1.Refresh();

JScript/JavaScript

<BODY onload='Init()'>
<OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="Ribbon1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Items = Ribbon1.Items;
		var_Items.Add("Item",null,null).Italic = true;
		var_Items.Add("<i>Item</i>",null,null);
		var_Items.Add("",null,null).ToString = "Item[itl]";
	Ribbon1.Refresh();
}
</SCRIPT>
</BODY>

VBScript

<BODY onload='Init()'>
<OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="Ribbon1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With Ribbon1
		With .Items
			.Add("Item").Italic = True
			.Add "<i>Item</i>"
			.Add("").ToString = "Item[itl]"
		End With
		.Refresh 
	End With
End Function
</SCRIPT>
</BODY>

C# for /COM

EXRIBBONLib.Items var_Items = axRibbon1.Items;
	var_Items.Add("Item",null,null).Italic = true;
	var_Items.Add("<i>Item</i>",null,null);
	var_Items.Add("",null,null).ToString = "Item[itl]";
axRibbon1.Refresh();

X++ (Dynamics Ax 2009)

public void init()
{
	COM com_Item,com_Items;
	anytype var_Item,var_Items;
	;

	super();

	var_Items = exribbon1.Items(); com_Items = var_Items;
		var_Item = COM::createFromObject(com_Items.Add("Item")); com_Item = var_Item;
		com_Item.Italic(true);
		com_Items.Add("<i>Item</i>");
		var_Item = COM::createFromObject(com_Items.Add("")); com_Item = var_Item;
		com_Item.ToString("Item[itl]");
	exribbon1.Refresh();
}

Delphi 8 (.NET only)

with AxRibbon1 do
begin
	with Items do
	begin
		Add('Item',Nil,Nil).Italic := True;
		Add('<i>Item</i>',Nil,Nil);
		Add('',Nil,Nil).ToString := 'Item[itl]';
	end;
	Refresh();
end

Delphi (standard)

with Ribbon1 do
begin
	with Items do
	begin
		Add('Item',Null,Null).Italic := True;
		Add('<i>Item</i>',Null,Null);
		Add('',Null,Null).ToString := 'Item[itl]';
	end;
	Refresh();
end

VFP

with thisform.Ribbon1
	with .Items
		.Add("Item").Italic = .T.
		.Add("<i>Item</i>")
		.Add("").ToString = "Item[itl]"
	endwith
	.Refresh
endwith

dBASE Plus

local oRibbon,var_Item,var_Item1,var_Items

oRibbon = form.Activex1.nativeObject
var_Items = oRibbon.Items
	// var_Items.Add("Item").Italic = true
	var_Item = var_Items.Add("Item")
	with (oRibbon)
		TemplateDef = [Dim var_Item]
		TemplateDef = var_Item
		Template = [var_Item.Italic = true]
	endwith
	var_Items.Add("<i>Item</i>")
	// var_Items.Add("").ToString = "Item[itl]"
	var_Item1 = var_Items.Add("")
	with (oRibbon)
		TemplateDef = [Dim var_Item1]
		TemplateDef = var_Item1
		Template = [var_Item1.ToString = "Item[itl]"]
	endwith
oRibbon.Refresh()

XBasic (Alpha Five)

Dim oRibbon as P
Dim var_Item as P
Dim var_Item1 as P
Dim var_Items as P

oRibbon = topparent:CONTROL_ACTIVEX1.activex
var_Items = oRibbon.Items
	' var_Items.Add("Item").Italic = .t.
	var_Item = var_Items.Add("Item")
	oRibbon.TemplateDef = "Dim var_Item"
	oRibbon.TemplateDef = var_Item
	oRibbon.Template = "var_Item.Italic = True"

	var_Items.Add("<i>Item</i>")
	' var_Items.Add("").ToString = "Item[itl]"
	var_Item1 = var_Items.Add("")
	oRibbon.TemplateDef = "Dim var_Item1"
	oRibbon.TemplateDef = var_Item1
	oRibbon.Template = "var_Item1.ToString = \"Item[itl]\""

oRibbon.Refresh()

Visual Objects

local var_Items as IItems

var_Items := oDCOCX_Exontrol1:Items
	var_Items:Add("Item",nil,nil):Italic := true
	var_Items:Add("<i>Item</i>",nil,nil)
	var_Items:Add("",nil,nil):ToString := "Item[itl]"
oDCOCX_Exontrol1:Refresh()

PowerBuilder

OleObject oRibbon,var_Items

oRibbon = ole_1.Object
var_Items = oRibbon.Items
	var_Items.Add("Item").Italic = true
	var_Items.Add("<i>Item</i>")
	var_Items.Add("").ToString = "Item[itl]"
oRibbon.Refresh()

Visual DataFlex

Procedure OnCreate
	Forward Send OnCreate
	Variant voItems
	Get ComItems to voItems
	Handle hoItems
	Get Create (RefClass(cComItems)) to hoItems
	Set pvComObject of hoItems to voItems
		Variant voItem
		Get ComAdd of hoItems "Item" Nothing Nothing to voItem
		Handle hoItem
		Get Create (RefClass(cComItem)) to hoItem
		Set pvComObject of hoItem to voItem
			Set ComItalic of hoItem to True
		Send Destroy to hoItem
		Get ComAdd of hoItems "<i>Item</i>" Nothing Nothing to Nothing
		Variant voItem1
		Get ComAdd of hoItems "" Nothing Nothing to voItem1
		Handle hoItem1
		Get Create (RefClass(cComItem)) to hoItem1
		Set pvComObject of hoItem1 to voItem1
			Set ComToString of hoItem1 to "Item[itl]"
		Send Destroy to hoItem1
	Send Destroy to hoItems
	Send ComRefresh
End_Procedure

XBase++

#include "AppEvent.ch"
#include "ActiveX.ch"

PROCEDURE Main
 	LOCAL oForm
	LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL
	LOCAL oItems
	LOCAL oRibbon

	oForm := XbpDialog():new( AppDesktop() )
	oForm:drawingArea:clipChildren := .T.
	oForm:create( ,,{100,100}, {640,480},, .F. )
	oForm:close  := {|| PostAppEvent( xbeP_Quit )}

	oRibbon := XbpActiveXControl():new( oForm:drawingArea )
	oRibbon:CLSID  := "Exontrol.Ribbon.1" /*{DDF58CFA-750F-45E0-8A00-CFBE431702E2}*/
	oRibbon:create(,, {10,60},{610,370} )

		oItems := oRibbon:Items()
			oItems:Add("Item"):Italic := .T.
			oItems:Add("<i>Item</i>")
			oItems:Add(""):ToString := "Item[itl]"
		oRibbon:Refresh()

	oForm:Show()
	DO WHILE nEvent != xbeP_Quit
		nEvent := AppEvent( @mp1, @mp2, @oXbp )
		oXbp:handleEvent( nEvent, mp1, mp2 )
	ENDDO 
RETURN