property Panel.Alignment as TextAlignEnum
Gets or sets the alignment of text and icons within the status bar panel.

TypeDescription
TextAlignEnum A TextAlignEnum that specifies the alignment of the caption in the panel.
Use the Alignment property to align the caption in the panel. Use the Text property to assign a caption to a panel.  Use the Image property to assign an icon to a panel.

The following VB sample shows "How can I align the text inside the panel":

With StatusBar1
	.BeginUpdate 
	.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
	.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
	.BackColorPanels = 83886080
	.BackColor = -2147483633
	.Format = "(0/16/32),(1/17/33),(2/18/34)"
	With .Panel(0)
		.Text = "exAlignTopLeft"
		.Alignment = exAlignTopLeft
	End With
	With .Panel(1)
		.Text = "exAlignTopCenter"
		.Alignment = exAlignTopCenter
	End With
	With .Panel(2)
		.Text = "exAlignTopRight"
		.Alignment = exAlignTopRight
	End With
	With .Panel(16)
		.Text = "exAlignMiddleLeft"
		.Alignment = exAlignMiddleLeft
	End With
	With .Panel(17)
		.Text = "exAlignMiddleCenter"
		.Alignment = exAlignMiddleCenter
	End With
	With .Panel(18)
		.Text = "exAlignMiddleRight"
		.Alignment = exAlignMiddleRight
	End With
	With .Panel(32)
		.Text = "exAlignBottomLeft"
		.Alignment = exAlignBottomLeft
	End With
	With .Panel(33)
		.Text = "exAlignBottomCenter"
		.Alignment = exAlignBottomCenter
	End With
	With .Panel(34)
		.Text = "exAlignBottomRight"
		.Alignment = exAlignBottomRight
	End With
	.EndUpdate 
End With
The following VB.NET sample shows "How can I align the text inside the panel":
With AxStatusBar1
	.BeginUpdate 
	.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
	.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
	.GetOcx().BackColorPanels = &H5000000
	.GetOcx().BackColor = &H8000000f
	.Format = "(0/16/32),(1/17/33),(2/18/34)"
	With .get_Panel(0)
		.Text = "exAlignTopLeft"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignTopLeft
	End With
	With .get_Panel(1)
		.Text = "exAlignTopCenter"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignTopCenter
	End With
	With .get_Panel(2)
		.Text = "exAlignTopRight"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignTopRight
	End With
	With .get_Panel(16)
		.Text = "exAlignMiddleLeft"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignMiddleLeft
	End With
	With .get_Panel(17)
		.Text = "exAlignMiddleCenter"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignMiddleCenter
	End With
	With .get_Panel(18)
		.Text = "exAlignMiddleRight"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignMiddleRight
	End With
	With .get_Panel(32)
		.Text = "exAlignBottomLeft"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignBottomLeft
	End With
	With .get_Panel(33)
		.Text = "exAlignBottomCenter"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignBottomCenter
	End With
	With .get_Panel(34)
		.Text = "exAlignBottomRight"
		.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignBottomRight
	End With
	.EndUpdate 
End With
The following C++ sample shows "How can I align the text inside the panel":
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSTATUSBARLib' for the library: 'ExStatusBar 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExStatusBar.dll"
	using namespace EXSTATUSBARLib;
*/
EXSTATUSBARLib::IStatusBarPtr spStatusBar1 = GetDlgItem(IDC_STATUSBAR1)->GetControlUnknown();
spStatusBar1->BeginUpdate();
spStatusBar1->GetVisualAppearance()->Add(4,"c:\\exontrol\\images\\border.ebn");
spStatusBar1->GetVisualAppearance()->Add(5,"CP:4 1 1 -1 -1");
spStatusBar1->PutBackColorPanels(83886080);
spStatusBar1->PutBackColor(-2147483633);
spStatusBar1->PutFormat(L"(0/16/32),(1/17/33),(2/18/34)");
EXSTATUSBARLib::IPanelPtr var_Panel = spStatusBar1->GetPanel(long(0));
	var_Panel->PutText(L"exAlignTopLeft");
	var_Panel->PutAlignment(EXSTATUSBARLib::exAlignTopLeft);
EXSTATUSBARLib::IPanelPtr var_Panel1 = spStatusBar1->GetPanel(long(1));
	var_Panel1->PutText(L"exAlignTopCenter");
	var_Panel1->PutAlignment(EXSTATUSBARLib::exAlignTopCenter);
EXSTATUSBARLib::IPanelPtr var_Panel2 = spStatusBar1->GetPanel(long(2));
	var_Panel2->PutText(L"exAlignTopRight");
	var_Panel2->PutAlignment(EXSTATUSBARLib::exAlignTopRight);
EXSTATUSBARLib::IPanelPtr var_Panel3 = spStatusBar1->GetPanel(long(16));
	var_Panel3->PutText(L"exAlignMiddleLeft");
	var_Panel3->PutAlignment(EXSTATUSBARLib::exAlignMiddleLeft);
EXSTATUSBARLib::IPanelPtr var_Panel4 = spStatusBar1->GetPanel(long(17));
	var_Panel4->PutText(L"exAlignMiddleCenter");
	var_Panel4->PutAlignment(EXSTATUSBARLib::exAlignMiddleCenter);
EXSTATUSBARLib::IPanelPtr var_Panel5 = spStatusBar1->GetPanel(long(18));
	var_Panel5->PutText(L"exAlignMiddleRight");
	var_Panel5->PutAlignment(EXSTATUSBARLib::exAlignMiddleRight);
EXSTATUSBARLib::IPanelPtr var_Panel6 = spStatusBar1->GetPanel(long(32));
	var_Panel6->PutText(L"exAlignBottomLeft");
	var_Panel6->PutAlignment(EXSTATUSBARLib::exAlignBottomLeft);
EXSTATUSBARLib::IPanelPtr var_Panel7 = spStatusBar1->GetPanel(long(33));
	var_Panel7->PutText(L"exAlignBottomCenter");
	var_Panel7->PutAlignment(EXSTATUSBARLib::exAlignBottomCenter);
EXSTATUSBARLib::IPanelPtr var_Panel8 = spStatusBar1->GetPanel(long(34));
	var_Panel8->PutText(L"exAlignBottomRight");
	var_Panel8->PutAlignment(EXSTATUSBARLib::exAlignBottomRight);
spStatusBar1->EndUpdate();
The following C# sample shows "How can I align the text inside the panel":
axStatusBar1.BeginUpdate();
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColor = 0x8000000f;
axStatusBar1.Format = "(0/16/32),(1/17/33),(2/18/34)";
EXSTATUSBARLib.Panel var_Panel = axStatusBar1.get_Panel(0);
	var_Panel.Text = "exAlignTopLeft";
	var_Panel.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignTopLeft;
EXSTATUSBARLib.Panel var_Panel1 = axStatusBar1.get_Panel(1);
	var_Panel1.Text = "exAlignTopCenter";
	var_Panel1.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignTopCenter;
EXSTATUSBARLib.Panel var_Panel2 = axStatusBar1.get_Panel(2);
	var_Panel2.Text = "exAlignTopRight";
	var_Panel2.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignTopRight;
EXSTATUSBARLib.Panel var_Panel3 = axStatusBar1.get_Panel(16);
	var_Panel3.Text = "exAlignMiddleLeft";
	var_Panel3.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignMiddleLeft;
EXSTATUSBARLib.Panel var_Panel4 = axStatusBar1.get_Panel(17);
	var_Panel4.Text = "exAlignMiddleCenter";
	var_Panel4.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignMiddleCenter;
EXSTATUSBARLib.Panel var_Panel5 = axStatusBar1.get_Panel(18);
	var_Panel5.Text = "exAlignMiddleRight";
	var_Panel5.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignMiddleRight;
EXSTATUSBARLib.Panel var_Panel6 = axStatusBar1.get_Panel(32);
	var_Panel6.Text = "exAlignBottomLeft";
	var_Panel6.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignBottomLeft;
EXSTATUSBARLib.Panel var_Panel7 = axStatusBar1.get_Panel(33);
	var_Panel7.Text = "exAlignBottomCenter";
	var_Panel7.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignBottomCenter;
EXSTATUSBARLib.Panel var_Panel8 = axStatusBar1.get_Panel(34);
	var_Panel8.Text = "exAlignBottomRight";
	var_Panel8.Alignment = EXSTATUSBARLib.TextAlignEnum.exAlignBottomRight;
axStatusBar1.EndUpdate();
The following VFP sample shows "How can I align the text inside the panel":
with thisform.StatusBar1
	.BeginUpdate
	.VisualAppearance.Add(4,"c:\exontrol\images\border.ebn")
	.VisualAppearance.Add(5,"CP:4 1 1 -1 -1")
	.BackColorPanels = 83886080
	.BackColor = -2147483633
	.Format = "(0/16/32),(1/17/33),(2/18/34)"
	with .Panel(0)
		.Text = "exAlignTopLeft"
		.Alignment = 0
	endwith
	with .Panel(1)
		.Text = "exAlignTopCenter"
		.Alignment = 1
	endwith
	with .Panel(2)
		.Text = "exAlignTopRight"
		.Alignment = 2
	endwith
	with .Panel(16)
		.Text = "exAlignMiddleLeft"
		.Alignment = 16
	endwith
	with .Panel(17)
		.Text = "exAlignMiddleCenter"
		.Alignment = 17
	endwith
	with .Panel(18)
		.Text = "exAlignMiddleRight"
		.Alignment = 18
	endwith
	with .Panel(32)
		.Text = "exAlignBottomLeft"
		.Alignment = 32
	endwith
	with .Panel(33)
		.Text = "exAlignBottomCenter"
		.Alignment = 33
	endwith
	with .Panel(34)
		.Text = "exAlignBottomRight"
		.Alignment = 34
	endwith
	.EndUpdate
endwith