property Schedule.ScrollPartCaptionAlignment(ScrollBar as ScrollBarEnum, Part as ScrollPartEnum) as AlignmentEnum
Specifies the alignment of the caption in the part of the scroll bar.

TypeDescription
ScrollBar as ScrollBarEnum A ScrollBar expression that indicates the scrollbar where the caption is displayed.
Part as ScrollPartEnum A ScrollPartEnum expression that specifies the parts of the scroll where the text is displayed
AlignmentEnum An AlignmentEnum expression that specifies the alignment of the caption in the part of the scrollbar.
The ScrollPartCaptionAlignment property specifies the alignment of the caption in the part of the scroll bar. By default, the caption is centered. Use the ScrolPartCaption property to specify the caption being displayed on specified part of the scroll bar. Use the ScrollPartVisible property to add or remove buttons/parts in the control's scrollbar.

The following VB sample displays "left" aligned to the left on the lower part of the control's horizontal scroll bar, and "right" aligned to the right on the upper part of the control's horizontal scroll bar:

With Schedule1
	.ScrollPartCaption(exHScroll,exLowerBackPart) = "left"
	.ScrollPartCaptionAlignment(exHScroll,exLowerBackPart) = LeftAlignment
	.ScrollPartCaption(exHScroll,exUpperBackPart) = "right"
	.ScrollPartCaptionAlignment(exHScroll,exUpperBackPart) = RightAlignment
	.ColumnAutoResize = False
	.Columns.Add 1
	.Columns.Add 2
	.Columns.Add 3
	.Columns.Add 4
End With

The following VB.NET sample displays "left" aligned to the left on the lower part of the control's horizontal scroll bar, and "right" aligned to the right on the upper part of the control's horizontal scroll bar:

With AxSchedule1
	.set_ScrollPartCaption(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exLowerBackPart,"left")
	.set_ScrollPartCaptionAlignment(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exLowerBackPart,EXSCHEDULELib.AlignmentEnum.LeftAlignment)
	.set_ScrollPartCaption(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exUpperBackPart,"right")
	.set_ScrollPartCaptionAlignment(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exUpperBackPart,EXSCHEDULELib.AlignmentEnum.RightAlignment)
	.ColumnAutoResize = False
	.Columns.Add 1
	.Columns.Add 2
	.Columns.Add 3
	.Columns.Add 4
End With

The following C# sample displays "left" aligned to the left on the lower part of the control's horizontal scroll bar, and "right" aligned to the right on the upper part of the control's horizontal scroll bar:

axSchedule1.set_ScrollPartCaption(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exLowerBackPart,"left");
axSchedule1.set_ScrollPartCaptionAlignment(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exLowerBackPart,EXSCHEDULELib.AlignmentEnum.LeftAlignment);
axSchedule1.set_ScrollPartCaption(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exUpperBackPart,"right");
axSchedule1.set_ScrollPartCaptionAlignment(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exUpperBackPart,EXSCHEDULELib.AlignmentEnum.RightAlignment);
axSchedule1.ColumnAutoResize = false;
axSchedule1.Columns.Add(1.ToString());
axSchedule1.Columns.Add(2.ToString());
axSchedule1.Columns.Add(3.ToString());
axSchedule1.Columns.Add(4.ToString());

The following C++ sample displays "left" aligned to the left on the lower part of the control's horizontal scroll bar, and "right" aligned to the right on the upper part of the control's horizontal scroll bar:

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

	#import "ExSchedule.dll"
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutScrollPartCaption(EXSCHEDULELib::exHScroll,EXSCHEDULELib::exLowerBackPart,L"left");
spSchedule1->PutScrollPartCaptionAlignment(EXSCHEDULELib::exHScroll,EXSCHEDULELib::exLowerBackPart,EXSCHEDULELib::LeftAlignment);
spSchedule1->PutScrollPartCaption(EXSCHEDULELib::exHScroll,EXSCHEDULELib::exUpperBackPart,L"right");
spSchedule1->PutScrollPartCaptionAlignment(EXSCHEDULELib::exHScroll,EXSCHEDULELib::exUpperBackPart,EXSCHEDULELib::RightAlignment);
spSchedule1->PutColumnAutoResize(VARIANT_FALSE);
spSchedule1->GetColumns()->Add(L"1");
spSchedule1->GetColumns()->Add(L"2");
spSchedule1->GetColumns()->Add(L"3");
spSchedule1->GetColumns()->Add(L"4");

The following VFP sample displays "left" aligned to the left on the lower part of the control's horizontal scroll bar, and "right" aligned to the right on the upper part of the control's horizontal scroll bar:

with thisform.Schedule1
	.ScrollPartCaption(1,512) = "left"
	.ScrollPartCaptionAlignment(1,512) = 0
	.ScrollPartCaption(1,128) = "right"
	.ScrollPartCaptionAlignment(1,128) = 2
	.ColumnAutoResize = .F.
	.Columns.Add(1)
	.Columns.Add(2)
	.Columns.Add(3)
	.Columns.Add(4)
endwith