バージョン

BorderStyle プロパティ

すべての境界線のスタイルを取得または設定します。個々の境界線の設定を優先します。
シンタックス
'宣言
 
Public Property BorderStyle As Infragistics.Documents.Excel.CellBorderLineStyle
public Infragistics.Documents.Excel.CellBorderLineStyle BorderStyle {get; set;}

プロパティ値

下枠線のスタイル。
解説

境界線のスタイルが非デフォルト値に設定され、BottomBorderColor が Default に設定されている場合、Color.Black に解決されます。

使用例
Dim labelFormatSettings As New FormatSettings() 
labelFormatSettings.BorderColor = Colors.Blue 
labelFormatSettings.BorderStyle = Infragistics.Excel.CellBorderLineStyle.Double
labelFormatSettings.FillPattern = Infragistics.Excel.FillPatternStyle.DiagonalStripe
labelFormatSettings.FillPatternForegroundColor = Colors.White 
labelFormatSettings.FillPatternBackgroundColor = Colors.Black 
labelFormatSettings.FontColor = Colors.Red 
labelFormatSettings.FontFamily = New FontFamily("Times New Roman") 
labelFormatSettings.FontSize = New Infragistics.Windows.DeviceUnitLength(14, Infragistics.Windows.DeviceUnitType.Point) 
labelFormatSettings.FontWeight = FontWeights.Bold 
labelFormatSettings.HorizontalAlignment = Infragistics.Excel.HorizontalCellAlignment.Center 

DataPresenterExcelExporter.SetExcelLabelFormatSettings(Me.Grid.FieldSettings, labelFormatSettings)
FormatSettings labelFormatSettings = new FormatSettings();
labelFormatSettings.BorderColor = Colors.Blue;
labelFormatSettings.BorderStyle = Infragistics.Excel.CellBorderLineStyle.Double;
labelFormatSettings.FillPattern = Infragistics.Excel.FillPatternStyle.DiagonalStripe;
labelFormatSettings.FillPatternForegroundColor = Colors.White;
labelFormatSettings.FillPatternBackgroundColor = Colors.Black;
labelFormatSettings.FontColor = Colors.Red;
labelFormatSettings.FontFamily = new FontFamily("Times New Roman");
labelFormatSettings.FontSize = new Infragistics.Windows.DeviceUnitLength(14, Infragistics.Windows.DeviceUnitType.Point);
labelFormatSettings.FontWeight = FontWeights.Bold;
labelFormatSettings.HorizontalAlignment = Infragistics.Excel.HorizontalCellAlignment.Center;

DataPresenterExcelExporter.SetExcelLabelFormatSettings(this.Grid.FieldSettings, labelFormatSettings);
<igDP:XamDataGrid.FieldSettings>
    
<igDP:FieldSettings>
        
<igExcelExporter:DataPresenterExcelExporter.ExcelLabelFormatSettings>
            
<igExcelExporter:FormatSettings 
                
BorderColor="Blue"
                
BorderStyle="Double"
                
FillPatternForegroundColor="White" 
                
FillPatternBackgroundColor="Black"
                
FillPattern="DiagonalStripe"
                
FontColor="Red"
                
FontFamily="Times New Roman"
                
FontWeight="Bold"
                
HorizontalAlignment="Center">
                
<igExcelExporter:FormatSettings.FontSize>
                    
<igWindows:DeviceUnitLength UnitType="Point" Value="14" />
                
</igExcelExporter:FormatSettings.FontSize>
            
</igExcelExporter:FormatSettings>
        
</igExcelExporter:DataPresenterExcelExporter.ExcelLabelFormatSettings>
    
</igDP:FieldSettings>            
</igDP:XamDataGrid.FieldSettings>
参照