Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Nested struct or Object property of a component? Pin
mike montagne4-Feb-07 9:22
mike montagne4-Feb-07 9:22 
GeneralRe: Nested struct or Object property of a component? Pin
mike montagne4-Feb-07 19:15
mike montagne4-Feb-07 19:15 
GeneralUI Type Editor appears not to be the answer. Pin
mike montagne4-Feb-07 20:12
mike montagne4-Feb-07 20:12 
GeneralInterfaces? Pin
mike montagne4-Feb-07 20:17
mike montagne4-Feb-07 20:17 
GeneralRe: Nested struct or Object property of a component? Pin
mike montagne5-Feb-07 17:51
mike montagne5-Feb-07 17:51 
AnswerRe: Nested struct or Object property of a component? Pin
Martin#4-Feb-07 22:51
Martin#4-Feb-07 22:51 
GeneralRe: Nested struct or Object property of a component? Pin
mike montagne5-Feb-07 10:29
mike montagne5-Feb-07 10:29 
GeneralRe: Nested struct or Object property of a component? Pin
mike montagne5-Feb-07 10:38
mike montagne5-Feb-07 10:38 
PS.

Here also is the initial declaration of my property class and its internal fields. Each of the fields is exposed as a property marked with the [Browsable] attribute, and with both get and set methods. But I have nothing but a grayed out property name in my client class:


{
/// <summary>
/// Data structure for conditional margin implementations.
/// Supports layout for 1 left/right alignment and 1 top/bottom alignment of 2 possible alternatives each.
/// </summary>
///
[Serializable]
[ToolboxItem( true )]
[DesignerAttribute( typeof( GCMargins_Designer ) )]
public class GCMargins : Object // , ICustomTypeDescriptor // : ADVANCEIS.Controls_N.IGCMargins
     {
     private enumMarginGroup f_AlignmentGroup;
     private Int32 f_Bottom_TopOrBottomAligned;
     private Int32 f_Left_LeftOrRightAligned;
     private Int32 f_LeftAndRight_TopOrBottomAligned;
     private Int32 f_Right_LeftOrRightAligned;
     private Int32 f_Top_TopOrBottomAligned;
     private Int32 f_TopAndBottom_LeftOrRightAligned;



Here are the property definitions:

#region PROPERTIES



/// <summary>
/// Determines margin deployment. AlignmentGroup membership is reflected by margin nomenclature.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Determines margin deployment. AlignmentGroup membership is reflected by margin nomenclature." )]
public enumMarginGroup AlignmentGroup
     {
     get
          {
          return f_AlignmentGroup;
          }
     set
          {
          if ( value != f_AlignmentGroup )
               f_AlignmentGroup = value;
          }
     }

/// <summary>
/// Bottom margin, top or bottom aligned. Minimum = 2.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Bottom margin, top or bottom aligned. Minimum = 2." )]
public Int32 Bottom_TopOrBottomAligned
     {
     get
          {
          return f_Bottom_TopOrBottomAligned;
          }
     set
          {
          if ( value != f_Bottom_TopOrBottomAligned )
               f_Bottom_TopOrBottomAligned = Rectify( value );
          }
     }

/// <summary>
/// Left margin, left or right aligned. Minimum = 2.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Left margin, left or right aligned. Minimum = 2." )]
public Int32 Left_LeftOrRightAligned
     {
     get
          {
          return f_Left_LeftOrRightAligned;
          }
     set
          {
          if ( value != f_Left_LeftOrRightAligned )
               f_Left_LeftOrRightAligned = Rectify( value );
          }
     }

/// <summary>
/// Left and right margins, top or bottom aligned. Minimum = 2.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Left and right margins, top or bottom aligned. Minimum = 2." )]
public Int32 LeftAndRight_TopOrBottomAligned
     {
     get
          {
          return f_LeftAndRight_TopOrBottomAligned;
          }
     set
          {
          if ( value != f_LeftAndRight_TopOrBottomAligned )
               f_LeftAndRight_TopOrBottomAligned = Rectify( value );
          }
     }

/// <summary>
/// Right margin, left or right aligned. Minimum = 2.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Right margin, left or right aligned. Minimum = 2." )]
public Int32 Right_RLAligned
     {
     get
          {
          return f_Right_LeftOrRightAligned;
          }
     set
          {
          if ( value != f_Right_LeftOrRightAligned )
               f_Right_LeftOrRightAligned = Rectify( value );
          }
     }

/// <summary>
/// Top margin, top or bottom aligned. Minimum = 2.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Top margin, top or bottom aligned. Minimum = 2." )]
public Int32 Top_TopOrBottomAligned
     {
     get
          {
          return f_Top_TopOrBottomAligned;
          }
     set
          {
          if ( value != f_Top_TopOrBottomAligned )
               f_Top_TopOrBottomAligned = Rectify( value );
          }
     }

/// <summary>
/// Top and bottom margins, left or right aligned. Minimum = 2.
/// </summary>
[Browsable( true )]
[Category( "Appearance" )]
[DefaultValue( 3 )]
[Description( "Top and bottom margins, left or right aligned. Minimum = 2." )]
public Int32 TopAndBottom_LeftOrRightAligned
     {
     get
          {
          return f_TopAndBottom_LeftOrRightAligned;
          }
     set
          {
          if ( value != f_TopAndBottom_LeftOrRightAligned )
               f_TopAndBottom_LeftOrRightAligned = Rectify( value );
          }
     }



#endregion PROPERTIES



TIA,

m
GeneralPreFilterProperties should not be relevant (?) Pin
mike montagne5-Feb-07 10:52
mike montagne5-Feb-07 10:52 
QuestiondataGrid dataset Pin
123456uio4-Feb-07 8:54
123456uio4-Feb-07 8:54 
QuestionSomewhat new to C#... Pin
JeremyLM4-Feb-07 8:04
JeremyLM4-Feb-07 8:04 
AnswerRe: Somewhat new to C#... Pin
Christian Graus4-Feb-07 9:14
protectorChristian Graus4-Feb-07 9:14 
QuestionDataGridView virtual mode how to? Pin
SeMartens4-Feb-07 6:58
SeMartens4-Feb-07 6:58 
QuestionChange control properties from dll Pin
AceC0d3r4-Feb-07 6:57
AceC0d3r4-Feb-07 6:57 
AnswerRe: Change control properties from dll Pin
Dave Kreskowiak4-Feb-07 11:02
mveDave Kreskowiak4-Feb-07 11:02 
GeneralRe: Change control properties from dll Pin
AceC0d3r4-Feb-07 11:12
AceC0d3r4-Feb-07 11:12 
GeneralRe: Change control properties from dll Pin
Colin Angus Mackay4-Feb-07 14:12
Colin Angus Mackay4-Feb-07 14:12 
QuestionFloating Images Pin
dsl/fahk4-Feb-07 6:46
dsl/fahk4-Feb-07 6:46 
AnswerRe: Floating Images Pin
Christian Graus4-Feb-07 9:18
protectorChristian Graus4-Feb-07 9:18 
QuestionNewbie code problem please help? Pin
Wolf924-Feb-07 4:04
Wolf924-Feb-07 4:04 
AnswerRe: Newbie code problem please help? Pin
Colin Angus Mackay4-Feb-07 5:35
Colin Angus Mackay4-Feb-07 5:35 
AnswerRe: Newbie code problem please help? Pin
Ravi Bhavnani4-Feb-07 5:37
professionalRavi Bhavnani4-Feb-07 5:37 
QuestionDLLimport Problem Pin
snouto4-Feb-07 3:44
snouto4-Feb-07 3:44 
AnswerRe: DLLimport Problem Pin
Colin Angus Mackay4-Feb-07 4:04
Colin Angus Mackay4-Feb-07 4:04 
QuestionGuid as a Stored Proc parameter Pin
Ryno Burger4-Feb-07 3:42
Ryno Burger4-Feb-07 3:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.