menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Suggestion - API Reference

    Show / Hide Table of Contents

    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
    ISuggestion
    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 Description
    Xamarin.Forms.BindableProperty

    TextProperty

    Identifies the Name Xamarin.Forms.BindableProperty.

    Declaration
    public static readonly BindableProperty TextProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    Image

    Gets or sets the image of a suggestion item.

    Declaration
    public ImageSource Image { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.ImageSource

    Text

    Gets or sets the text of a suggestion item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    Implements

    ISuggestion
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved