# RtfXmlNamespace

XML namespace declaration from the RTF {\*\xmlnstbl ...} destination.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

XML namespace declaration from the RTF {\*\xmlnstbl ...} destination.

## Inheritance

- object
- RtfXmlNamespace

## Usage

Explore 2 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.AddXmlNamespace](/api/rtf/officeimo-rtf-rtfdocument/#method-addxmlnamespace-int32-string)
- Property [RtfDocument.XmlNamespaces](/api/rtf/officeimo-rtf-rtfdocument/#property-xmlnamespaces)

Filter members 

Show inherited

## Constructors

`public RtfXmlNamespace(int id, string uri)` [#](#constructor-ctor-int32-string)

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

Initializes an XML namespace declaration.

Parameters

**id int required**

**uri 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)

[RtfXmlNamespace.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfXmlNamespace.cs#L17)

Namespace id represented by \xmlnsN.

`public string Uri { get; set; }` [#](#property-uri)

[RtfXmlNamespace.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfXmlNamespace.cs#L20)

Namespace URI text.

<!-- PowerForge markdown artifact sha256:51FF1DA56E0D213535222A9A11E2AC62B3CB5376DEC7180D49FE911E7B03CD8A -->
