🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17286

What selected? in C#

#17286
From: Dmitri Kukuiski
Date: Mon, 23 Jun 2003 16:15
10 lines
943 bytes
try to make Script in C#, but i can't get type of selected object in InDesign.
Can anybody help me?

With VB i write this:

If TypeName(myDocument.Selection.Item(1)) = "Line" then ...

how i can make this in C#?

GetType().ToString() return string like this: "System.__ComObject"
Technical Details
Message-ID: <1de9a5a1.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,47746c10502aa200,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-23 09:38:27 PST
From: "Dmitri Kukuiski" <james@remas.udm.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: What selected? in C#
Message-ID: <1de9a5a1.-1@WebX.la2eafNXanI>
Date: Mon, 23 Jun 2003 09:15:16 -0700
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit