Play D7#9 one string at a time and you hear D, F#, A, C and E#. D is the root, F# the major third, A the fifth, C the minor seventh and E# the sharp ninth. Said aloud, its notes are D, F sharp, A, C and E sharp.
From the low string to the high one you hear D, F#, C and E#. A, the fifth, does not sound in this fingering. The lowest note is D on string 5 and the highest is E# on string 2.
D7#9 is a closed shape with no open strings. Move it to another fret and the chord changes, but the fingering stays. Strings 6 and 1 are not played. Everything fits between frets 4 and 6. The second shape on this page starts at fret 9.
From D7#9 to D9 only two strings change, 2 and 1. It shares two notes with Bm, D and F#. Going to Bm, one position stays the same.
The notes of D7#9 do not fit together in any major or natural minor scale.