property Expression.ScrollPartCaption(ScrollBar as ScrollBarEnum, Part as ScrollPartEnum) as String
Specifies the caption being displayed on the specified scroll part.

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 displated
String A String expression that specifies the caption being displayed on the part of the scroll bar.
Use the ScrolPartCaption property to specify the caption of the scroll's part. Use the ScrollPartVisible property to add or remove buttons/parts in the control's scrollbar. By default, when a part becomes visible, the ScrollPartEnable property is automatically called, so the parts becomes enabled. Use the ScrollPartEnable property to specify enable or disable parts in the control's scrollbar. Use the ScrollBars property to specify the visible scrollbars in the control. The control fires the ScrollButtonClick event when the user clicks a part of the scroll bar. Use the ScrollFont property to specify the font in the control's scroll bar. Use the ScrollOrderParts property to customize the order of the buttons in the scroll bar.

By default, the following parts are shown:

The following VB sample adds up and down additional buttons to the control's vertical scroll bar :

With Expression1
        .ScrollPartVisible(exVScroll, exLeftB1Part Or exRightB1Part) = True
        .ScrollPartCaption(exVScroll, exLeftB1Part) = "1"
        .ScrollPartCaption(exVScroll, exRightB1Part) = "2"
End With

The following VB.NET sample adds up and down additional buttons to the control's vertical scroll bar :

With AxExpression1
    .set_ScrollPartVisible(EXPRESSIONLib.ScrollBarEnum.exVScroll, EXPRESSIONLib.ScrollPartEnum.exLeftB1Part Or EXPRESSIONLib.ScrollPartEnum.exRightB1Part, True)
    .set_ScrollPartCaption(EXPRESSIONLib.ScrollBarEnum.exVScroll, EXPRESSIONLib.ScrollPartEnum.exLeftB1Part, "1")
    .set_ScrollPartCaption(EXPRESSIONLib.ScrollBarEnum.exVScroll, EXPRESSIONLib.ScrollPartEnum.exRightB1Part, "2")
End With

The following C# sample adds up and down additional buttons to the control's vertical scroll bar :

axExpression1.set_ScrollPartVisible(EXPRESSIONLib.ScrollBarEnum.exVScroll, EXPRESSIONLib.ScrollPartEnum.exLeftB1Part | EXPRESSIONLib.ScrollPartEnum.exRightB1Part, true);
axExpression1.set_ScrollPartCaption(EXPRESSIONLib.ScrollBarEnum.exVScroll, EXPRESSIONLib.ScrollPartEnum.exLeftB1Part , "1");
axExpression1.set_ScrollPartCaption(EXPRESSIONLib.ScrollBarEnum.exVScroll, EXPRESSIONLib.ScrollPartEnum.exRightB1Part, "2");

The following C++ sample adds up and down additional buttons to the control's vertical scroll bar :

m_expression.SetScrollPartVisible( 0 /*exVScroll*/, 32768  /*exLeftB1Part*/ | 32 /*exRightB1Part*/, TRUE );
m_expression.SetScrollPartCaption( 0 /*exVScroll*/, 32768  /*exLeftB1Part*/ , _T("1") );
m_expression.SetScrollPartCaption( 0 /*exVScroll*/, 32 /*exRightB1Part*/ , _T("2") );

The following VFP sample adds up and down additional buttons to the control's vertical scroll bar :

With thisform.Expression1
        .ScrollPartVisible(0, bitor(32768,32)) = .t.
        .ScrollPartCaption(0,32768) = "1"
        .ScrollPartCaption(0, 32) = "2"
EndWith
*** ActiveX Control Event ***
LPARAMETERS scrollpart

wait window nowait ltrim(str(scrollpart))