# RtfFileReference

File reference from the RTF {\*\filetbl ...} destination.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfFileReference.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L10)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

File reference from the RTF {\*\filetbl ...} destination.

## Inheritance

- object
- RtfFileReference

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [RtfDocument.AddFileReference](/api/rtf/officeimo-rtf-rtfdocument/#method-addfilereference-string-officeimo-rtf-rtffilesource)
- Property [RtfDocument.FileReferences](/api/rtf/officeimo-rtf-rtfdocument/#property-filereferences)

### Accepted by parameters 1

- Method [RtfLosslessEditor.SetFileReference](/api/rtf/officeimo-rtf-rtflosslesseditor/#method-setfilereference-officeimo-rtf-rtffilereference) parameter `fileReference`

Filter members 

Show inherited

## Constructors

`public RtfFileReference(int id, string path)` [#](#constructor-ctor-int32-string)

[RtfFileReference.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L10)

Initializes a file-table reference.

Parameters

**id int required**

**path string required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int Id { get; internal set; }` [#](#property-id)

[RtfFileReference.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L16)

RTF file identifier from \fid.

`public string Path { get; set; }` [#](#property-path)

[RtfFileReference.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L19)

Referenced path text.

`public int? RelativePathStart { get; set; }` [#](#property-relativepathstart)

[RtfFileReference.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L22)

Character offset where the relative portion of the path starts, from \frelative.

`public int? OperatingSystemNumber { get; set; }` [#](#property-operatingsystemnumber)

[RtfFileReference.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L25)

Operating-system-specific file number from \fosnum.

`public RtfFileSource Sources { get; set; }` [#](#property-sources)

[RtfFileReference.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFileReference.cs#L28)

File-system source flags such as \fvalidntfs and \fnetwork.

<!-- PowerForge markdown artifact sha256:2D5DEACA97A714A0DFE91158D3C7AB0E951243B76559D767A12BC49B171485E8 -->
