is it possible to replace the visible number on block with a name? or possible annotate the block with name.
block name
Was this article helpful?
0 out of 0 found this helpful
is it possible to replace the visible number on block with a name? or possible annotate the block with name.
0 out of 0 found this helpful
Comments
4 comments
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);
}
Please sign in to leave a comment.