ShinobiControls Xamarin Bindings Documentation

ShinobiForms : Shinobi.Forms Namespace

SFormTextFieldComparisonValidator Class

A validator that compares the validating text field's input against a specified text field's input.

Syntax

[Foundation.Register("SFormTextFieldComparisonValidator", true)]
public class SFormTextFieldComparisonValidator : Foundation.NSObject, ISFormTextFieldValidator, IDisposable

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

Members

See Also: Inherited members from Foundation.NSObject.

Public Constructors

Default constructor.
Documentation for this section has not yet been entered.

Protected Constructors

Documentation for this section has not yet been entered.
A constructor used when creating managed representations of unmanaged objects.

Public Properties

[read-only]
override
ClassHandle IntPtr . The handle for this class.
ComparisonMode SFormTextComparisonMode . How to treat the value of the text field for the comparison.
InvalidMessage string . A string representing the invalid message to provide.
[read-only]
ToCompare SFormTextField . The text field that we are comparing the validating text field's input against.
[read-only]
ValidResult SFormComparisonRule . The result needed from the comparison to achieve positive validation.

Public Methods

ValidateTextField (SFormTextField) : bool
Documentation for this section has not yet been entered.

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.

Member Details

SFormTextFieldComparisonValidator Constructor

Default constructor.

Syntax

[Foundation.Export("init")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public SFormTextFieldComparisonValidator ()

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SFormTextFieldComparisonValidator Constructor

Documentation for this section has not yet been entered.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SFormTextFieldComparisonValidator (Foundation.NSObjectFlag t)

Parameters

t
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SFormTextFieldComparisonValidator Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SFormTextFieldComparisonValidator (IntPtr handle)

Parameters

handle
Handle of the unmanaged object

Remarks

You should not invoke this method directly.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SFormTextFieldComparisonValidator Constructor

Documentation for this section has not yet been entered.

Syntax

[Foundation.Export("initWithFieldToCompare:validResult:")]
public SFormTextFieldComparisonValidator (SFormTextField toCompare, SFormComparisonRule validResult)

Parameters

toCompare
Documentation for this section has not yet been entered.
validResult
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

ClassHandle Property

The handle for this class.

Syntax

public override IntPtr ClassHandle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

ComparisonMode Property

How to treat the value of the text field for the comparison.

Syntax

[get: Foundation.Export("comparisonMode", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
[set: Foundation.Export("setComparisonMode:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
public virtual SFormTextComparisonMode ComparisonMode { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

A value of `SFormTextComparisonModeTextValue` will compare the contents of the fields as `String`s. A value of `SFormTextComparisonModeNumberValue` will compare the contents of the fields as `NSNumber`s. If either field's values can not be converted successfully to an `NSNumber`, validation will return `NO`.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

Dispose Method

Releases unmanaged resources.

Syntax

protected override void Dispose (bool disposing)

Parameters

disposing
True if called by Dispose, false if called from a finalizer

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

InvalidMessage Property

A string representing the invalid message to provide.

Syntax

[get: Foundation.Export("invalidMessage")]
[set: Foundation.Export("setInvalidMessage:")]
public virtual string InvalidMessage { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

ToCompare Property

The text field that we are comparing the validating text field's input against.

Syntax

[get: Foundation.Export("toCompare", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual SFormTextField ToCompare { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

ValidateTextField Method

Documentation for this section has not yet been entered.

Syntax

[Foundation.Export("validateTextField:")]
public virtual bool ValidateTextField (SFormTextField field)

Parameters

field
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

ValidResult Property

The result needed from the comparison to achieve positive validation.

Syntax

[get: Foundation.Export("validResult", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
public virtual SFormComparisonRule ValidResult { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4