D
delphi_excel
Unregistered / Unconfirmed
GUEST, unregistred user!
Range("A1:C3".Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
ActiveSheet.Shapes.AddLine(0#, 1.5, 81#, 42.75).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.ShapeRange.Item("Line 1".Left = 0#
Selection.ShapeRange.Item("Line 1".Width = 81.75
Selection.ShapeRange.Item("Line 1".Top = 0.75
Selection.ShapeRange.Item("Line 1".Height = 42#
ActiveSheet.Shapes.AddLine(83.25, 3#, 164.25, 42#).Select
Range("D3".Select
ActiveSheet.Shapes("Line 2".Select
Range("A1:C3".Select
ActiveSheet.Shapes("Line 2".Select
Selection.ShapeRange.Item("Line 2".Left = 78.75
Selection.ShapeRange.Item("Line 2".Width = 85.5
Selection.ShapeRange.Item("Line 2".Top = 0#
Selection.ShapeRange.Item("Line 2".Height = 42#
Range("A1:C3".Select
ActiveSheet.Shapes.AddLine(55.5, 13.5, 109.5, 42#).Select
Selection.ShapeRange.Flip msoFlipVertical
Range("A1:C3".Select
ActiveSheet.Shapes("Line 3".Select
Selection.ShapeRange.Item("Line 3".Left = 55.5
Selection.ShapeRange.Item("Line 3".Width = 52.5
Range("A1:C3".Select
ActiveSheet.Shapes.AddLine(109.5, 27#, 135#, 41.25).Select
Selection.ShapeRange.Flip msoFlipVertical
Range("C6".Select
ActiveSheet.Shapes.AddLine(52.5, 15#, 108.75, 40.5).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.ShapeRange.Flip msoFlipVertical
Range("A1:C3".Select
ActiveSheet.Shapes.AddLine(22.5, 29.25, 52.5, 43.5).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.ShapeRange.Flip msoFlipVertical
Range("A1:C3".Select
End Sub
在excel中先合并3行3列的单元格,用绘图工具画了一列斜线和对应的反斜线。
在delphi中如何表达?紧急求助,谢谢!
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
ActiveSheet.Shapes.AddLine(0#, 1.5, 81#, 42.75).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.ShapeRange.Item("Line 1".Left = 0#
Selection.ShapeRange.Item("Line 1".Width = 81.75
Selection.ShapeRange.Item("Line 1".Top = 0.75
Selection.ShapeRange.Item("Line 1".Height = 42#
ActiveSheet.Shapes.AddLine(83.25, 3#, 164.25, 42#).Select
Range("D3".Select
ActiveSheet.Shapes("Line 2".Select
Range("A1:C3".Select
ActiveSheet.Shapes("Line 2".Select
Selection.ShapeRange.Item("Line 2".Left = 78.75
Selection.ShapeRange.Item("Line 2".Width = 85.5
Selection.ShapeRange.Item("Line 2".Top = 0#
Selection.ShapeRange.Item("Line 2".Height = 42#
Range("A1:C3".Select
ActiveSheet.Shapes.AddLine(55.5, 13.5, 109.5, 42#).Select
Selection.ShapeRange.Flip msoFlipVertical
Range("A1:C3".Select
ActiveSheet.Shapes("Line 3".Select
Selection.ShapeRange.Item("Line 3".Left = 55.5
Selection.ShapeRange.Item("Line 3".Width = 52.5
Range("A1:C3".Select
ActiveSheet.Shapes.AddLine(109.5, 27#, 135#, 41.25).Select
Selection.ShapeRange.Flip msoFlipVertical
Range("C6".Select
ActiveSheet.Shapes.AddLine(52.5, 15#, 108.75, 40.5).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.ShapeRange.Flip msoFlipVertical
Range("A1:C3".Select
ActiveSheet.Shapes.AddLine(22.5, 29.25, 52.5, 43.5).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.ShapeRange.Flip msoFlipVertical
Range("A1:C3".Select
End Sub
在excel中先合并3行3列的单元格,用绘图工具画了一列斜线和对应的反斜线。
在delphi中如何表达?紧急求助,谢谢!