Skip to end of metadata
Go to start of metadata

Description

Sets or returns a String that represents the subject of this file.

C#
 public System.String Subject{ get; set; }
vb.net
Public Property Subject() As String

Remarks

MS Word equivalent: File menu > Properties > Summary tab > Subject:

Examples

C#

          //--- Return Subject
          string subject = docProps.Subject;

          //--- Set Subject
          docProps.Subject = "Annual Meeting";
        
vb.net

          '--- Return Subject
          Dim subject As String = docProps.Subject

          '--- Set Subject
          docProps.Subject = "Annual Meeting"
        
  • No labels