Delegate ContentRange.ReductionAllowedTest
This delegat defines the method signature used by the ReduceRanges(List<ContentRange>, ContentRange.ReductionAllowedTest) helper to determine if two ranges that have the same parent can be merged.
Namespace: Sdl.DesktopEditor.EditorApi
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public delegate bool ReductionAllowedTest(ContentRange from, ContentRange into);
Parameters
Type | Name | Description |
---|---|---|
ContentRange | from | |
ContentRange | into |
Returns
Type | Description |
---|---|
Boolean |
Remarks
Used e.g. to ensure that ranges that span segments are not merged.
Constructors
ReductionAllowedTest(Object, IntPtr)
This delegat defines the method signature used by the ReduceRanges(List<ContentRange>, ContentRange.ReductionAllowedTest) helper to determine if two ranges that have the same parent can be merged.
Declaration
public ReductionAllowedTest(object object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
Object | object | |
IntPtr | method |
Remarks
Used e.g. to ensure that ranges that span segments are not merged.
Methods
BeginInvoke(ContentRange, ContentRange, AsyncCallback, Object)
This delegat defines the method signature used by the ReduceRanges(List<ContentRange>, ContentRange.ReductionAllowedTest) helper to determine if two ranges that have the same parent can be merged.
Declaration
public virtual IAsyncResult BeginInvoke(ContentRange from, ContentRange into, AsyncCallback callback, object object)
Parameters
Type | Name | Description |
---|---|---|
ContentRange | from | |
ContentRange | into | |
AsyncCallback | callback | |
Object | object |
Returns
Type | Description |
---|---|
IAsyncResult |
Remarks
Used e.g. to ensure that ranges that span segments are not merged.
EndInvoke(IAsyncResult)
This delegat defines the method signature used by the ReduceRanges(List<ContentRange>, ContentRange.ReductionAllowedTest) helper to determine if two ranges that have the same parent can be merged.
Declaration
public virtual bool EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result |
Returns
Type | Description |
---|---|
Boolean |
Remarks
Used e.g. to ensure that ranges that span segments are not merged.
Invoke(ContentRange, ContentRange)
This delegat defines the method signature used by the ReduceRanges(List<ContentRange>, ContentRange.ReductionAllowedTest) helper to determine if two ranges that have the same parent can be merged.
Declaration
public virtual bool Invoke(ContentRange from, ContentRange into)
Parameters
Type | Name | Description |
---|---|---|
ContentRange | from | |
ContentRange | into |
Returns
Type | Description |
---|---|
Boolean |
Remarks
Used e.g. to ensure that ranges that span segments are not merged.