Suppress uitable cell borders

조회 수: 22 (최근 30일)
Matt J
Matt J 2025년 2월 14일
편집: dpb 2025년 2월 18일 19:03
In Excel, there are buttons to select particular spreadsheet cell borders and hide them. Is there an analogous way to suppress the borders of cells in a uitable?

채택된 답변

dpb
dpb 2025년 2월 15일
No. The only user-settable style properies are those accessible via uistyle which does not include a borders property. Could be an enhancement request, but nota bene that Excel has a bunch of options for borders, not just a single 'on','off' toggle that can get quite complicated in practice.
  댓글 수: 2
Matt J
Matt J 2025년 2월 18일 18:00
Ah well, too bad.
dpb
dpb 2025년 2월 18일 18:45
편집: dpb 2025년 2월 18일 19:03
I have a couple of apps that prettify some spreadsheets; while doing so I built some of the Excel parameters as classes for being able to document code and quit having to look them up all the time...the border-related ones I've done so far are--
>> type XlBordersIndex.m
classdef XlBordersIndex
properties (Constant)
xlLeft = 7
xlRight = 10
xlTop = 8
xlBottom = 9
xlDiagonalDown = 5
xlDiagonalUp = 6
xlEdgeLeft = 7
xlEdgeTop = 8
xlEdgeBottom = 9
xlEdgeRight = 10
xlInsideVertical = 11
xlInsideHorizontal= 12
end
end
>> type XlBorderWeight.m
classdef XlBorderWeight
properties (Constant)
xlHairline = 1 % Hairline (thinnest border).
xlMedium =-4138 % Medium.
xlThick = 4 % Thick (widest border).
xlThin = 2 % Thin.
end
end
>>

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by