Custom Inline class

Hello.
Is it possible to create a custom Inline class. I would like to create a custom class in order to have its own style (border around its content and nested controls) but also to be able to be to be formatted (font, background, etc) by using user interface. Unfortunatly, UiContainerAdv does not allow me to format the text and background inside UIElement ​in a proper way.
All Inline specific methods have internal access modifiers so I do not see how I can implement any custom logic. Any ideas how to achieve my goal?

Thanks.


4 Replies 1 reply marked as answer

KG Kalaivannan Ganesan Syncfusion Team May 11, 2023 10:36 AM UTC

From the given details, we have not found complete details of your requirements. So, could you please share us brief explanation of your end requirements, specifically the purpose of the inline class. Also, kindly clarify us about the statement “nested controls" in your response.

It will be more helpful if you illustrate your requirements with screenshot or video with the expected output. Based on that, we will check on the feasibility to achieve the same and update you with more details.



RL Ruslan Lunev May 11, 2023 11:00 AM UTC

On the image is just an example of what I would like to implement.


Syncfusion_custom_inline.pngConsider that user selected custom inline. Then:

  • If user changes the Font Size then the "Text content" should change its text size.
  • If user changes Highlight color then inline's background should be changed.
  • If change of the text size should increase the custom inline size then is should be resized.


KG Kalaivannan Ganesan Syncfusion Team May 12, 2023 11:00 AM UTC

The inline elements of the SfRichTextBoxAdv have their own implementation for the properties defined in the Ribbon. As we have implemented the code at the source level, the properties applied in the Ribbon will have an impact on the element.

If you define your own inline element, the implementation must be done at the source level. However, as per your requirements, implementing this feature is not feasible within the SfRichTextBoxAdv control.


Marked as answer

RL Ruslan Lunev May 12, 2023 01:02 PM UTC

I see, thanks.


Loader.
Up arrow icon