[問題] 請問一下 關於Protected

看板C_Sharp (C#)作者 (On S)時間14年前 (2011/05/29 16:59), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
請問一下 我最近使用到一個元件 (ui元件) 環境是 VS2008 (已花一、兩天爬文 找不到答案) 可是裡面有一個變數 我需要設定他 不過他是 protected的 我呼叫不出來 不知道該怎麼設定呢? protected bool PanableAndZoomable { set; get; } Member of Emgu.CV.UI.PanAndZoomPictureBox Summary: Get or Set the property to enable(disable) Pan and Zoom 謝謝 -- 在你抱怨沒有生在有錢人的家時 想想 怎麼讓你孩子停止這項抱怨 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.124.72.152

05/29 17:22, , 1F
protectedh存取修飾詞是只有衍生類別可以呼叫的意思
05/29 17:22, 1F
嗯。可以詳細說明一下嗎 謝謝 小弟第一次碰這塊 (他是一個元件) 我不知道如何繼承 元件

05/29 19:39, , 2F
05/29 19:39, 2F
嗯…那個我知道 就好像Button 有一個屬性是CreateParams protected override System.Windows.Forms.CreateParams CreateParams { get; } Member of System.Windows.Forms.Button Summary: Gets a System.Windows.Forms.CreateParams on the base class when creating a window. Returns: A System.Windows.Forms.CreateParams. 也是無法直接用的.... ※ 編輯: kf185793 來自: 140.124.72.152 (05/29 20:47)
文章代碼(AID): #1DuWhlqJ (C_Sharp)
文章代碼(AID): #1DuWhlqJ (C_Sharp)