property Note.PartShadow(Part as NotePartEnum) as Boolean
Specifies whether the part of the note shows a shadow border.

TypeDescription
Part as NotePartEnum A NotePartEnum expression that indicates whose part's shadow is changed.
Boolean A boolean expression that specifies whether the part shows a shadow around.
By default, the PartShadow property is True. Use the PartShadow property to hide the shadow around the part.  By default, the PartBorderSize property is 1, which means that the part draws a frame of color being indicated by the PartBorderColor property. Use the PartBorderSize property on 0, to hide the part's borders.  Use the ClearPartBackColor method to erase the part's background color so you can put a transparent picture using the <img> tag in the PartText property. Use  the ClearPartBackColor method to clear the part's background which means that the part shows only the borders ( PartBorderSize property is greater than 0 ), shadows ( PartShadow property is True ) and the text of the part ( PartText property ), so the part is shown with no erasing its background. The PartBackColor property specifies the part's background color. Use the PartVisible property to show or hide the note's starting or ending part. Use the PartTransparency property to specify the transparency to display the part of the note. The PartForeColor property to specify the part's foreground color. Use the <bgcolor> HTML tag in the PartText property to specify parts of the note's caption with different background colors.  The PartBorderColor property indicates the color to show the part's frame.

The following sample shows notes with pictures ( PartBorderSize = 0, PartShadow = False, PartText = "<img>p1</img>" ) :

 

The following sample shows the note with the no PartBackColor property set ( actually the ClearPartBackColor method is called before ) :

The following sample shows the note with the PartBackColor property set on red:

The following sample shows the note with the PartBackColor property set on red, semi-transparent (PartTransparency property is 50):

The following VB sample assigns a note to the bar, by displaying a picture, when user right clicks the bar:

Private Sub G2antt1_RClick()
    Dim h As Long, c As Long, hit As HitTestInfoEnum
    G2antt1.BeginUpdate
        With G2antt1
            h = .ItemFromPoint(-1, -1, c, hit)
            If (h <> 0) Then
                Dim k As Variant
                k = .Chart.BarFromPoint(-1, -1)
                If (Not IsEmpty(k)) Then
                    With .Chart.Notes.Add(.Chart.Notes.Count, h, k, "<img>p1</img>")
                        .ClearPartBackColor exNoteEnd
                        .PartBorderSize(exNoteEnd) = 0
                        .PartShadow(exNoteEnd) = False
                    End With
                End If
            End If
        End With
    G2antt1.EndUpdate
End Sub