This is a little more complicated than the simple yes or no answer. The pen for the current metric will usually correspond to the number displayed in the upper left corner of the picture window, but this number is displayed only when the 'NumberTitle' property of the figure is set to 'on' (by default).
Another wrinkle is that the shape handle cannot be a whole. There is a property 'IntegerHandle' figure that determines whether the handle created for the figure is an integer or an irregular real number. If this property is set to 'off' , you will get descriptor values ββthat are not integers, so the first shape you open will not have descriptor 1. For example:
>> hFigure = figure('IntegerHandle','off') %
And the number is numbered accordingly:

Note that when the digit number and descriptor are displayed, there is some rounding of the number. The digits window displays only 6 digits after the decimal place. It becomes obvious that you are dealing with floating point numbers when you change the format of the command window to show more decimal places:
>> format long >> hFigure hFigure = 1.730040283203125e+002
In this case, the displayed pattern number and the pattern pen are slightly different.
source share