Expression painter:currentdash() returns the dash pattern and the dash offset of the current pen.