NXOpen .NET Reference
12.0.0
|
Represents a collection of typographical fonts (for example, Arial, OldEnglish) More...
Public Types | |
enum | Type { Nx, Standard, Empty = 10 } |
Specifies the type of font More... | |
Public Member Functions | |
unsafe int | AddFont (string fontName) |
Adds a font to the part. More... | |
unsafe string | GetFontName (int fontIndex) |
Returns the name for the font that has the specified integer ID More... | |
unsafe bool | DoesFontExist (int fontIndex) |
Finds out whether the specified ID is associated with a font More... | |
unsafe int | GetLength () |
Returns the number of fonts in the part More... | |
unsafe int | AddFont (string fontName, NXOpen.FontCollection.Type type) |
Adds a font to the part. More... | |
unsafe void | ReplaceFont (int fontIndex, NXOpen.FontCollection.Type type, string fontName) |
Replaces a font name and type at the given font index More... | |
unsafe NXOpen.FontCollection.Type | GetFontType (int fontIndex) |
Returns the font type of the font at the provided index More... | |
Properties | |
Tag | Tag [get] |
Returns the tag of this object. More... | |
Represents a collection of typographical fonts (for example, Arial, OldEnglish)
To obtain an instance of this class, refer to NXOpen.BasePart
Created in NX3.0.0
unsafe int NXOpen.FontCollection.AddFont | ( | string | fontName | ) |
Adds a font to the part.
This will only add NX fonts. To add Standard fonts, use the overloaded FontCollection.AddFont routine that accepts the font type. If the font name already exists in the part, this will return the existing font index.
Created in NX3.0.0
License requirements: None.
fontName | Font name |
unsafe int NXOpen.FontCollection.AddFont | ( | string | fontName, |
NXOpen.FontCollection.Type | type | ||
) |
Adds a font to the part.
This can be used to create both NX and Standard fonts. If the font name already exists in the part, this will return the existing font index.
Created in NX7.5.0
License requirements: None.
fontName | Font name |
type | Type of the font |
unsafe bool NXOpen.FontCollection.DoesFontExist | ( | int | fontIndex | ) |
Finds out whether the specified ID is associated with a font
Created in NX3.0.0
License requirements: None.
fontIndex | ID of the font |
unsafe string NXOpen.FontCollection.GetFontName | ( | int | fontIndex | ) |
Returns the name for the font that has the specified integer ID
Created in NX3.0.0
License requirements: None.
fontIndex | The ID for the font |
unsafe NXOpen.FontCollection.Type NXOpen.FontCollection.GetFontType | ( | int | fontIndex | ) |
Returns the font type of the font at the provided index
Created in NX7.5.0
License requirements: None.
fontIndex | ID of the font |
unsafe int NXOpen.FontCollection.GetLength | ( | ) |
Returns the number of fonts in the part
Created in NX3.0.0
License requirements: None.
unsafe void NXOpen.FontCollection.ReplaceFont | ( | int | fontIndex, |
NXOpen.FontCollection.Type | type, | ||
string | fontName | ||
) |
Replaces a font name and type at the given font index
Created in NX7.5.0
License requirements: None.
fontIndex | ID of the font |
type | New type of the font |
fontName | New name of the font |
|
get |
Returns the tag of this object.