c# fontweight in code code example Example: c# fontweight in code textBlock.FontWeight = FontWeights.Bold;