Class Suggestion
Represents a class which contains the information about an individual suggestion item in the suggestions collecton in a message.
Inheritance
System.Object
Suggestion
Implements
Namespace: Syncfusion.XForms.Chat
Assembly: Syncfusion.SfChat.XForms.dll
Syntax
public class Suggestion : BindableObject, ISuggestion
Constructors
Suggestion()
Initializes a new instance of the Suggestion class.
Declaration
public Suggestion()
Suggestion(String, ImageSource)
Initializes a new instance of the Suggestion class.
Declaration
public Suggestion(string text, ImageSource image)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be displayed as a suggestion. |
Xamarin.Forms.ImageSource | image | The image to be displayed along with the suggestion text. |
Fields
ImageProperty
Identifies the Image Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty ImageProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TextProperty
Identifies the Name Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
Image
Gets or sets the image of a suggestion item.
Declaration
public ImageSource Image { get; set; }
Property Value
Type |
---|
Xamarin.Forms.ImageSource |
Text
Gets or sets the text of a suggestion item.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |