DdeSettings

Ecng.Interop.Dde

Represents the settings for DDE (Dynamic Data Exchange) communication.

Hereda de: Cloneable<DdeSettings>

Implementa: IAsyncPersistable

Constructores

DdeSettings
public DdeSettings()
ddeSettings = DdeSettings()

Initializes a new instance of the DdeSettings class with default values.

Propiedades

ColumnOffset
public int ColumnOffset { get; set; }
value = ddeSettings.ColumnOffset
ddeSettings.ColumnOffset = value

Gets or sets the column offset from the left top corner.

RowOffset
public int RowOffset { get; set; }
value = ddeSettings.RowOffset
ddeSettings.RowOffset = value

Gets or sets the row offset from the left top corner.

Server
public string Server { get; set; }
value = ddeSettings.Server
ddeSettings.Server = value

Gets or sets the DDE server name.

ShowHeaders
public bool ShowHeaders { get; set; }
value = ddeSettings.ShowHeaders
ddeSettings.ShowHeaders = value

Gets or sets a value indicating whether header names should be displayed.

Topic
public string Topic { get; set; }
value = ddeSettings.Topic
ddeSettings.Topic = value

Gets or sets the DDE topic name (for example, "[Book1.xlsx]Sheet1").

Métodos

Apply
public void Apply(DdeSettings clone)
ddeSettings.Apply(clone)

Applies the settings from the specified DdeSettings instance.

clone
The instance containing the new settings.
Clone
public override DdeSettings Clone()
result = ddeSettings.Clone()

Creates a deep copy of the current DdeSettings instance.

Devuelve: A new instance that is a deep copy of this instance.

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = ddeSettings.LoadAsync(storage, cancellationToken)

Loads the settings from the provided SettingsStorage.

storage
The storage from which to load the settings.
cancellationToken
CancellationToken

Devuelve: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = ddeSettings.SaveAsync(storage, cancellationToken)

Saves the current settings to the provided SettingsStorage.

storage
The storage to which the settings will be saved.
cancellationToken
CancellationToken

Devuelve: Task