Article View: borland.public.csharpbuilder.language.csharp
Article #400Changing properties of object types at once
From: Jose Porter
Date: Wed, 14 Sep 2005 15:31
Date: Wed, 14 Sep 2005 15:31
10 lines
1267 bytes
1267 bytes
I have a C# database app. I want to change a property common to all the lables. How can this be done without explicitly calling each lable. Is there a C# equivelant to the following Delphi code: for i := 0 to Form1.ComponentCount - 1 do begin if Form1.Components[i] is TLable then TLabel(Form1.Components[i]).Font.Name := "Arial"; end;
Technical Details
Message-ID:
<43284245$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,5d82cec20d96ca8e,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jose Porter" <joseporter@netzero.com> Sender: "Jose Porter" <joseporter@netzero.com> Reply-To: "Jose Porter" <joseporter@netzero.com> Subject: Changing properties of object types at once Newsgroups: borland.public.csharpbuilder.language.csharp X-User-Info: 12.2.211.197 NNTP-Posting-Host: 207.105.83.66 Message-ID: <43284245$1@newsgroups.borland.com> Date: 14 Sep 2005 08:31:17 -0700 X-Trace: newsgroups.borland.com 1126711877 207.105.83.66 (14 Sep 2005 08:31:17 -0700) Lines: 10 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail