Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced

IInspectionPropertyEditService.ChangeProperty

Section titled “IInspectionPropertyEditService.ChangeProperty”
  • Applies a property mutation and records it when the owning feature observes a value change.

API: scripting
Project: Inno.Editor.Inspection
Scope: Editor

bool InnoEditor.Inspection.IInspectionPropertyEditService.ChangeProperty(object owner, string propertyName, System.Action mutation, string historyName, string? mergeKey, string? componentName)

Parameter owner: The domain object that owns the root serialized property.

Parameter propertyName: The exact root serialized member name.

Parameter mutation: The callback that assigns the requested value.

Parameter historyName: The user-facing name for the resulting history entry.

Parameter mergeKey: The current shared gesture key, or null for a discrete edit.

Parameter componentName: An optional public value component; null replaces the complete root value.

true when the value changed and the owning feature recorded the edit; otherwise, false.

Exception T:System.ArgumentNullException: Thrown when owner or mutation is null.

Exception T:System.ArgumentException: Thrown when propertyName or historyName is empty.