How to set the alignment of the grid as "First line only" for any style of paragraph

Hello.. Please help me.

I have to set the alignment of the grid as "First line only" for any paragraph style.

I use the code below to set the alignment of the grid as "all lines".

*********************************************************************************

TextAttributes InterfacePtr < ITextAttributes > (styleInfo, UseDefaultIID());

AttrGridAlignment InterfacePtr < ITextAttrGridAlignment > (: CreateObject2 < ITextAttrGridAlignment > (kTextAttrGridAlignmentBoss));

attrGridAlignment-> SetGridAlignment (Text::kGABaseline);

textAttributes-> ApplyAttribute (attrGridAlignment);

Here, I created the text attribute of the alignment of the grid and applied to the styleInfo of the style.

Now, the problem is that I tried all available of Text::GridAlignmentMetric values, but none of them affect the 'first line only. Please tell me the solution of this problem. I'm short on time.

Thanks in advance.

You apply this attribute via kEditTextStyleCmdBoss or equivalent? If this is not the case, consider to do.

kGABaseline is what you need. In addition (see dialogue change style to a "pipe") you will need kTAGridAlignOnlyFirstLineReportBoss - IID_ITEXTATTRBOOLEAN set to true...

Dirk

Tags: InDesign

Similar Questions

  • How to set the PS CC as default application for RAW Mac files.

    What is happening on my Nikon and my Fuji SLR. All of a sudden it will not open in Photoshop CC. It is opening in Photoshop Elements, which is also in my Mac. I want to change it back so that when I click on a RAW file, it opens automatically in PS CC instead of elements. I can click on OPEN WITH and click on CC PS to open it, but I don't want to have to do this extra step.

    Hi JoeRouton,

    Please visit the following link to set the default application like Photoshop for RAW files.

    Default application: How to change the default applications on Mac | IVous

    Let me know if it helps.

    Kind regards

    Tanuj

  • How to set the SGA / PGA or memory target for the database

    Hello

    We use on AIX 5.1,6.1, oracle 9i, 10g, 11g

    Currently, we manage the databases on the default memory which was chosen at the time of the creation of the databases.

    Now the application owner want to host multiple databases on the same server, so they ask the

    rough idea on the memory required for each database,

    How we calculate the amount of memory required for each database.

    Thank you

    that recommend the SGA ADVISOR?

  • Satellite C870-196 - how to set the password of BIOS access only?

    Hello

    I would like to put a password only to access or modify the BIOS and not to launch the system on my TOSHIBA Satellite C870-196.

    But I do not understand that is configured in the BIOS:

    -Set Admin password
    or
    -Set user password

    Thank you

    Kind regards

    Hello

    Here are some tips as the basis for a better understanding
    http://APS2.toshiba-tro.de/KB0/FAQ2503B00000R01.htm
    http://APS2.toshiba-tro.de/KB0/FAQ9202JE0000R01.htm
    http://APS2.toshiba-tro.de/KB0/FAQ9202JF0000R01.htm

    Check it please and if you have any other questions do not hesitate.

  • How to make the grid multi color line

    Hello

    I need to draw a curve with a line of several color as an attachment.

    How can I do?

    You can place different colored cursors.

  • How to set the value of a variable in a cluster in LabVIEW to c#?

    Hi guys, I'm working on a small c# program, which by using the interface provided by LabVIEW.  And I know that, with the help of lv. SetControlValue (name, value) can set a variable just on the front panel. But in my case, there are several groups on the front panel. Then it confused me how to set the variables in these groups. For example, there is a cluster named clusterA and a variable named a., I tried something like this:

    lv.SetControlValue("clusterA.valueA",1);
    

    but it totally inoperable. Everyone has some experience with this sort of thing? Thank you very much!!

    Hey guys, thanks a lot for all your response. I just found a simple way to solve this problem. For example, there is a cluster named "ClusterA", and there are only two witnesses, who are: an int value named "IntA" (default = 10 IntA value) and a string value named "StringA" (by default the StringA = 'abc'). In c#, if you call the method:

    var clusterA is vi (Array). GetControlValue ("ClusterA");

    you will get a table looks like: clusterA = {10, 'abc'}; So if you want to change IntA 123, you simply do:

    clusterA.SetValue (123, 0); 123 the value, 0 is the index of IntA in clusterA, after this clusterA table = {123, 'abc'}

    After that, simply to make the table in LabVIEW using:

    VI. SetControlValue ("ClusterA", clusterA);

    and now you see the LabVIEW, IntA is changed.

  • How to set the width of layout desktop screen in fluidlayout?

    For the flow layout of RWD, Web site design page I have is 960px wide. While working on DW CC, the width of sizes of support are:

    Mobile: width: 86,45%;

    Shelf width: 90.675%;

    Desktop width: 960px;

    When I set a percentage for desktop (for 960px), 68.6% (which is less mobile and the width of the Tablet), the browser displays more width 960px. Use a screen resolution of 1680X1050px.

    Now how to set the size of layout as 960px for desktop, in percentage?


    Or should I keep it as 960px for office and percentage for mobile and Tablet?

    68.6% of 1680px equals 1152px, then Yes, he is bigger than 960px

    If you want to stop at the 960px available, then set max-width: 960px to the container as well as width: 68.6%.

  • How to set the alignment of the centre on TextField?

    Hi guys.

    I have not found how to set the alignment of the centre on TextField?

    Do you know how to set the alignment of the centre on TextField?

    Please share your knowledge.

    Thank you.

    Hello

    Hope this will help you

    Import net.rim.device.api.ui.component.BasicEditField;

    class CustomTextField extends BasicEditField {}
    {CustomTextField()}
    Super(BasicEditField.FIELD_HCENTER |) BasicEditField.FIELD_VCENTER);
    }
       
    public void layout (int width, int height) {}
    Super.Layout (getPreferredWidth (), getPreferredHeight ());
    setExtent (getPreferredWidth (), getPreferredHeight ());
    }
       
       
       
    public int getPreferredHeight() {}
    System.out.println("---");
    beginning 50;
    }
       
    public int getPreferredWidth() {}
    System.out.println("###");
    Back to 120;
    }
       
    }

    Now in your class that extends the screen or full screen add this class object.

  • How to set the alignment of the field in a table in jdev 11.1.2.3?

    Hello
    How to set the alignment of the field in a table in jdev 11.1.2.3?
    for example: to display a body of numbers in a table as right aligned.
    I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
    and jspx, flowing, but it doesnot work.
    Thank you.
    Bao

    < af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
    sortable = "true".
    headerText = "#{bindings." VO1.hints.amount.label}.
    ID = "c44" width = "60".
    Align = "center" >
    < af:inputText value = "#{row.bindings.Amount.inputValue} '"
    label = "#{bindings." VO1.hints.amount.label}.
    required = "#{bindings." VO1.hints.amount.mandatory}.
    columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
    maximumLength = "#{bindings." VO1.hints.amount.precision}.
    shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
    ID = "it58.
    secret = "false".
    inlineStyle = "" text-decoration: overline; ">"
    < f: validator binding="#{row.bindings.Amount.validator}"/ >
    < / af:inputText >
    < / af:column >

    Hello
    To set a field right alignment in a table:
    It doesnot work when InlineStyle-> text-align: right;
    It works when ContentStyle-> text-align: right;

  • "How to set the measuring tool onto the foot of measure in inches, for example 10'4"

    "How to set the measuring tool onto the foot of measure in inches, for example 10'4"

    Hi jacobj89654320,

    You will need Acrobat application for this, please refer to this KB document for details https://helpx.adobe.com/acrobat/using/grids-guides-measurements-pdfs.html.

    Kind regards

    Nicos

  • How to set the number of e-mail messages that are stored on my iPhone

    How to set the number of e-mail messages that are stored on my iPhone – so when I don't have a network connection I can see a 'large' number of messages in my Inbox etc.

    This is series is not defined in the world

    You must go to settings-> mail, contacts, and calendars and check the settings of your e-mail provider offers in this area

  • How to set the time that my screen stays on?

    How to set the time that my screen lights up.  I have an iPod Touch 6?

    Settings > general > auto-lock

  • How to set the default android home page.

    How to set the home page in the latest browser of firefox for android?

    Hello:

    Unfortunately you can not remove the top sites home page but you can pin a site, remove a site from unpin it and change the url of a pinned site.

    Please read this article for instructions.

    I hope this helps!

  • How to set the time between slides in a slideshow (iPhoto, el capitan)

    How to set the time to say - 5 seconds or 20 seconds - between slide show photos in iPhoto. I use el capitan.

    See the Settings button at the bottom right of the toolbar (at the bottom of the slide show). Click on it and you have a small window with two tabes, refers to all the slides, the other to the selected slide. You can make your choice

  • Satellite C660 - how to set the focus of the webcam?

    Hello

    Just bought this laptop, the built-in webcam looks very blurry when I use Skype. Does anyone know how to set the focus to the subject?

    See you soon
    Jules

    Hello

    to be honest, I have no idea on your model of lap... Try to update driver webcamd and play with Skype video settings.

Maybe you are looking for

  • Portege M700 - protection of HARD drive problem

    Hello world I searched the net for a full day now try to find answers to this.Note, I am an accountant and not a computer geek. I have a laptop Portege M700. I am updating from Vista to Win7. Here's the problem:-Initially tried to uninstall Toshiba H

  • iOS 9.2.1 receive emails from yahoo

    Shortly after the installation of ios 9.2.1 my iPhone more than 6 cannot receive emails from yahoo. (Before that it worked very well for over a year.) My gmail works fine. I called Apple and they don't have any idea. They told me to back up my phone

  • Lenovo X 1 (1st generation) ThinkPad SSD upgrade

    Hello world. I was looking to upgrade my SSD in my X 1 and was looking at the Samsung 500 GB 2.5 inch SSD 850 Evo. Does anyone know if this SSD is compatible with the X 1 or if it will fit? Thank you!

  • OfficeJet Pro 8600 tray 2 does not work

    With plateau, two (optionally) installed and set by default the printer THAT ALWAYS tries to use the Tray1 with photo paper 4 x 6. This will always raise an error that there is a paper mismatch. In the literature, I read before buying said that the t

  • How can I get all the file in a directory name?

    Purpose: Try to get all the file in a directory name. My code: FileConnection fconn = (fileDirectory) Connector.open (FileConnection);Listing files = fconn.list ();Listing files = fconn.list ("*", true); Try_SCREEN.updateDisplay (files); txt shows un