# GrapeCity.Documents.Word.GcWordDocument.Path

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_GcWordDocument_Path_" data-uid="GrapeCity.Documents.Word.GcWordDocument.Path*">Path Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_GcWordDocument_Path_" data-uid="GrapeCity.Documents.Word.GcWordDocument.Path*"></a>
<h4 id="GrapeCity_Documents_Word_GcWordDocument_Path" data-uid="GrapeCity.Documents.Word.GcWordDocument.Path">Path</h4>
<div class="markdown level1 summary"><p>Gets or sets the source file path of the document.</p>
<p>
This property is updated automatically when the document is loaded or saved
using the <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.Load.html#GrapeCity_Documents_Word_GcWordDocument_Load_System_String_">Load(string)</a> or <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.Save.html#GrapeCity_Documents_Word_GcWordDocument_Save_System_String_GrapeCity_Documents_Word_DocumentType_">Save(string, DocumentType)</a> methods.
</p>
<p>
The value is used to resolve relative paths referenced within document fields.
If the document is loaded from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> via <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.Load.html#GrapeCity_Documents_Word_GcWordDocument_Load_System_IO_Stream_">Load(Stream)</a>,
make sure to set this property manually so that relative paths can be resolved correctly.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Path { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Path As String</code></pre>
</div>
</div>
