is it possible to replace the visible number on block with a name? or possible annotate the block with name.
block name
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています
is it possible to replace the visible number on block with a name? or possible annotate the block with name.
0人中0人がこの記事が役に立ったと言っています
コメント
4件のコメント
if you can provide sample code the better . TIA
Yes it is possible, please use IBlock::Name property for this purpose. Please see more details in Help → API Reference → Layout-Related Objects → Block.
I'ved tried this but still my block did not change it is still has number instead of name.
// or this
FREngine.IBlock activeblock = imgvwr.FRPage.Layout.Blocks[e.blockIndex];
To be able to change the block name, please try to use property IBlock::Description (Help → API Reference → Layout-Related Objects → Block). This property enables to set any text instead of block number, also you can set an empty string. You may set this property to “null” in case you need to return displaying of block number. Please see the sample code in C#:
private void testButton_Click(object sender, EventArgs e) {FREngine.IBlock block = Document.Pages[0].Layout.VisualBlocks[0];block.set_UserProperty("VisualComponents.BlockDescription", null);}サインインしてコメントを残してください。