C# Класс CSMSL.Chemistry.PeriodicTable

The Periodic Table of Elements.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
UserPerodicTablePath string

Открытые методы

Метод Описание
AddElement ( Element element ) : bool

Adds an element to this periodic table if the element atomic symbol is not already present. Overrides an element if the symbol is already present.

GetElement ( string element ) : Element
GetIsotope ( string element, int atomicNumber ) : Isotope
Load ( ) : void
Load ( string filePath ) : void

Load a xml file containing elemental and isotopic data into the periodic table

RestoreDefaults ( ) : void
Save ( ) : void
SaveTo ( string filePath ) : void
TryGetElement ( string elementSymbol, Element &element ) : bool

Приватные методы

Метод Описание
GetIsotope ( int uniqueId ) : Isotope

Get an isotope based on its unique isotope id

PeriodicTable ( ) : System

Описание методов

AddElement() публичный статический метод

Adds an element to this periodic table if the element atomic symbol is not already present. Overrides an element if the symbol is already present.
public static AddElement ( Element element ) : bool
element Element The element to add to the periodic table
Результат bool

GetElement() публичный статический метод

public static GetElement ( string element ) : Element
element string
Результат Element

GetIsotope() публичный статический метод

public static GetIsotope ( string element, int atomicNumber ) : Isotope
element string
atomicNumber int
Результат Isotope

Load() публичный статический метод

public static Load ( ) : void
Результат void

Load() публичный статический метод

Load a xml file containing elemental and isotopic data into the periodic table
public static Load ( string filePath ) : void
filePath string
Результат void

RestoreDefaults() публичный статический метод

public static RestoreDefaults ( ) : void
Результат void

Save() публичный статический метод

public static Save ( ) : void
Результат void

SaveTo() публичный статический метод

public static SaveTo ( string filePath ) : void
filePath string
Результат void

TryGetElement() публичный статический метод

public static TryGetElement ( string elementSymbol, Element &element ) : bool
elementSymbol string
element Element
Результат bool

Описание свойств

UserPerodicTablePath публичное статическое свойство

public static string UserPerodicTablePath
Результат string