Article View: adobe.scripting.indesign
Article #16725Re: [VB] Best way to find out vert. center of row
From: Olav Kvern
Date: Tue, 05 Aug 2003 15:40
Date: Tue, 05 Aug 2003 15:40
11 lines
1634 bytes
1634 bytes
Alex-- Remove the "Set" from the last line and you should be fine--what's being returned is not an object, so you don't need "Set." FirstBaselineOffset is a constant, or "enum"--it's one of a list of names/numbers that correspond to the options on the first baseline pop-up menu in the Text Frame Options dialog box (which, in turn, corresponds to the TextFramePreferences object). Take a look at the property in the VB Object Browser, and it'll lead you to the constants. You can use the name of the constant (idLeading), or the decimal value (1296852079). This value doesn't tell you the distance from the top of the cell to the baseline--instead, it tells you how to calculate the distance. If your first baseline offset is idLeading, the distance to the top inset (if any) is the leading value of the first line. Thanks, Ole
Technical Details
Message-ID:
<1dea31e6.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!snoopy.risq.qc.ca!in.100proofnews.com!in.100proofnews.com!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea31e6.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8d6ef4a33a455d0a X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-05 09:08:05 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!snoopy.risq.qc.ca!in.100proofnews.com!in.100proofnews.com!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Best way to find out vert. center of row Message-ID: <1dea31e6.2@WebX.la2eafNXanI> Date: Tue, 5 Aug 2003 08:40:35 -0700 References: <1dea31e6.-1@WebX.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit