필터 지우기
필터 지우기

How to trigger a PostSet event only after setting all properties of a set(object​,'Prop1',V​al1,'Prop2​',Val2) call?

조회 수: 4 (최근 30일)
I have a class that calls a single PostSet method whenever one of its properties is changed (to re-evaluate a stored private property). Sometimes, I want to change multiple properties at once with the following syntax:
set(object,'Prop1',Val1,'Prop2',Val2)
However, in that case it does not make sense for me to call the PostSet method twice (once after Prop1 was set; a second time after Prop2 was set). Is there a way to avoid this and call the PostSet method once after setting all properties of a set() call?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Argument Definitions에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by