作成日: 2020/11/04 最終更新日: 2020/11/04
文書種別
使用方法
詳細
C1RibbonFormで、タブのタイトル部分(タブ耳)だけを残し、タブのコンテンツ領域(リボンのグループ領域)を非表示にするには、リボンのコンテンツ領域の高さを「0」に設定すると共に、VisualStyleプロパティを「Custom」に設定します。なおこの場合、フォームの背景色などは、必要に応じて手動で設定してください。
◎サンプルコード(VB)
◎サンプルコード(VB)
' 背景色の保存
C1Ribbon1.VisualStyle = VisualStyle.Office2010Black
Dim bColor As Color = Me.BackgroundColor
' コンテンツ領域を非表示
C1Ribbon1.VisualStyle = VisualStyle.Custom
C1Ribbon1.RibbonStyle.ConstSet.Item(StyleConst.ContentAreaHeight) = 0
' 背景色の設定
Me.BackgroundColor = bColor
◎サンプルコード(C#) // 背景色の保存
c1Ribbon1.VisualStyle = VisualStyle.Office2010Black;
Color bColor = this.BackgroundColor;
// コンテンツ領域を非表示
c1Ribbon1.VisualStyle = VisualStyle.Custom;
c1Ribbon1.RibbonStyle.ConstSet[StyleConst.ContentAreaHeight] = 0;
// 背景色の設定
this.BackgroundColor = bColor;
旧文書番号
86166