iOS Code Snippet CSBuilder text direction

Discussion in 'iOS Code Snippets' started by Erel, Apr 8, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    This code adds a NSParagraphStyle to CSBuilder and changes the text direction to right to left:

    cs is the CSBuilder object
    Dim no As NativeObject = cs
    Dim paragraph As NativeObject
    paragraph = paragraph.Initialize(
    no.RunMethod("addAttribute:value:range:"Array("NSParagraphStyle", paragraph, no.MakeRange(0, cs.Length)))
    Pooya1 and MarcoRome like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice