The objective is to imitate an options page on visual studio.
The options page is Tools->Options->TextEditor->C++->General (say).
But I cannot get what control is the ‘Line’ against section headings. Check in the screenshot for the one highlighted by an arrow.

I have tried the LineShape, Panel etc, but none look as such.
What control is that?
Or how do I imitate it if we do not have such a predefined control?
You can do it either by using a LineShape or a GroupBox
See the image here below for an example (and instructions to make it look like the one you need)