Class ResultModel
This class is the central model to access the results of a comparison and to make the result available to any listener and presenter.
Implements
Inherited Members
Namespace: inetsoftware.Pdfc.Results
Assembly: inetsoftware.Pdfc.dll
Syntax
public class ResultModel : BridgedObject, IDisposable
Methods
Dispose()
Declaration
public void Dispose()
GetComparisonParameters()
Returns the static data for the current comparison.
Declaration
public InfoData GetComparisonParameters()
Returns
Type | Description |
---|---|
InfoData | comparison data |
GetDifferenceGroupsList(Boolean)
Return a list of DiffGroups held by this model.
Declaration
public List<DiffGroups> GetDifferenceGroupsList(bool filtered)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | filtered | if , only the diff groups which are visible will be returned
|
Returns
Type | Description |
---|---|
System.Collections.Generic.List<DiffGroups> | The difference groups to be displayed to the user or presenter |
GetDifferences(ModificationType.Type, Boolean)
Returns the number of differences held by this model for a certain type of differences
Declaration
public int GetDifferences(ModificationType.Type type, bool filtered)
Parameters
Type | Name | Description |
---|---|---|
ModificationType.Type | type | The type of modification to get the number of differences for. |
System.Boolean | filtered | if , only the type which are visible
|
Returns
Type | Description |
---|---|
System.Int32 | The number of differences to be displayed to the user or presenter |
GetDifferences(Boolean)
Return a list of differences held by this model.
Declaration
public List<Diff> GetDifferences(bool filtered)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | filtered | if , only the diffs which are visible will be returned
|
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Diff> | The differences to be displayed to the user or presenter |
GetDifferencesCount(Boolean)
Returns the number of differences held by this model. This number is an approximation to how many changes where done in the documents.It's neither the number of elements which are somehow affected nor the number of
Declaration
public int GetDifferencesCount(bool filtered)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | filtered | if , only the diffs which are visible will be counted
|
Returns
Type | Description |
---|---|
System.Int32 | The number of differences to be displayed to the user or presenter |