Table of Contents

Class DomItem

Namespace
combit.Reporting.Dom
Assembly
combit.ListLabel31.CrossPlatform.dll
public class DomItem
Inheritance
DomItem
Derived
Inherited Members

Fields

NonFormulaPropertyCache

Dictionary to cache non-formula properties for each type.

protected static readonly ConcurrentDictionary<Type, HashSet<string>> NonFormulaPropertyCache

Field Value

ConcurrentDictionary<Type, HashSet<string>>

domHandle

protected nint domHandle

Field Value

nint

Properties

InternalObjectType

Gets or sets the internal object type for this DomItem.

public string InternalObjectType { get; set; }

Property Value

string

Methods

CopyFrom(DomItem, bool)

Copies the properties and subobjects from the specified source DomItem to the current instance.

public void CopyFrom(DomItem source, bool forceSaveInvalidFormula = false)

Parameters

source DomItem

The source DomItem to copy from.

forceSaveInvalidFormula bool

Whether to force saving invalid formulas.

CopyFromWithEvaluate(DomItem, bool, bool)

Copies the properties and values from the specified DomItem source to the current instance, with an option to evaluate formulas during the copy process.

public void CopyFromWithEvaluate(DomItem source, bool ignoreCollections = false, bool forceSaveInvalidFormula = false)

Parameters

source DomItem

The DomItem instance from which to copy properties and values.

ignoreCollections bool

A value indicating whether to ignore collection properties during the copy process. true to skip copying collections; otherwise, false.

forceSaveInvalidFormula bool

A value indicating whether to force saving invalid formulas during the copy process. true to save invalid formulas; otherwise, false.

Remarks

This method evaluates formulas during the copy process, ensuring that any formula-based properties are recalculated and applied to the target instance. Use this method when you need to ensure that formulas are evaluated as part of the copy operation.

GenerateCode(CodeMemberMethod, string)

Generates code for the current DomItem instance.

public virtual void GenerateCode(CodeMemberMethod method, string prefix)

Parameters

method CodeMemberMethod

The code member method to add statements to.

prefix string

The prefix for code generation.

GetNameAliasForVirtualProperty(string)

protected virtual string GetNameAliasForVirtualProperty(string propertyName)

Parameters

propertyName string

Returns

string

GetPropertyPath(string)

public virtual string GetPropertyPath(string propertyName)

Parameters

propertyName string

Returns

string

GetPropertyVirtualValue(string, string, ref bool)

protected virtual string GetPropertyVirtualValue(string propertyName, string virtualValue, ref bool exists)

Parameters

propertyName string
virtualValue string
exists bool

Returns

string

GetVirtualVariableNames(string)

Returns a string list of virtual variable names for the given property.

public virtual List<string> GetVirtualVariableNames(string propertyName)

Parameters

propertyName string

Returns

List<string>