Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class StrokeDescriptor
{
private System.Collections.Generic.List _strokeDescriptor = new System.Collections.Generic.List();
private uint _Size = 0;
public uint Size
{
get
{
return _Size;
}
set
{
_Size = value;
}
}
public System.Collections.Generic.List Template
{
get
{
return _strokeDescriptor;
}
}
public StrokeDescriptor()
{
}
public bool IsEqual(StrokeDescriptor strd)
{
// If the no of templates in them are different return false
if( _strokeDescriptor.Count != strd.Template.Count )
return false;
// Compare each tag in the template. If any one of them is different, return false;
for( int i = 0; i < _strokeDescriptor.Count; i++ )
if( _strokeDescriptor[i] != strd.Template[i] )
return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class StrokeDescriptor
{
private System.Collections.Generic.List _strokeDescriptor = new System.Collections.Generic.List();
private uint _Size = 0;
public uint Size
{
get
{
return _Size;
}
set
{
_Size = value;
}
}
public System.Collections.Generic.List Template
{
get
{
return _strokeDescriptor;
}
}
public StrokeDescriptor()
{
}
public bool IsEqual(StrokeDescriptor strd)
{
// If the no of templates in them are different return false
if( _strokeDescriptor.Count != strd.Template.Count )
return false;
// Compare each tag in the template. If any one of them is different, return false;
for( int i = 0; i < _strokeDescriptor.Count; i++ )
if( _strokeDescriptor[i] != strd.Template[i] )
return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CrossContextChannel.cs
- CodeDefaultValueExpression.cs
- WindowsToolbar.cs
- DataGridViewDataErrorEventArgs.cs
- CodeConstructor.cs
- SqlMethodTransformer.cs
- _PooledStream.cs
- DataBoundControlDesigner.cs
- mediaeventargs.cs
- URLIdentityPermission.cs
- ArglessEventHandlerProxy.cs
- PageVisual.cs
- StrongNameKeyPair.cs
- DefaultWorkflowSchedulerService.cs
- WindowsRebar.cs
- DbModificationClause.cs
- Expr.cs
- FixedSOMGroup.cs
- HorizontalAlignConverter.cs
- AsymmetricAlgorithm.cs
- MasterPageParser.cs
- BitmapCodecInfo.cs
- ContextProperty.cs
- CodeSubDirectory.cs
- WhitespaceReader.cs
- ParameterCollectionEditorForm.cs
- SmuggledIUnknown.cs
- RuleInfoComparer.cs
- BitmapEffectGeneralTransform.cs
- DefaultParameterValueAttribute.cs
- DocumentXPathNavigator.cs
- SpotLight.cs
- SnapshotChangeTrackingStrategy.cs
- DataGridViewEditingControlShowingEventArgs.cs
- CapabilitiesState.cs
- Window.cs
- ListItemCollection.cs
- MouseEvent.cs
- WinInet.cs
- XmlCompatibilityReader.cs
- DataControlCommands.cs
- filewebresponse.cs
- TypeUtil.cs
- TextEncodedRawTextWriter.cs
- SessionStateUtil.cs
- LayoutTableCell.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- EditorPartCollection.cs
- EventLogEntryCollection.cs
- SecurityException.cs
- TextRangeEditTables.cs
- ResourceAssociationType.cs
- VoiceObjectToken.cs
- ServiceChannelFactory.cs
- Attributes.cs
- DbConnectionHelper.cs
- MenuTracker.cs
- CodeTypeReferenceSerializer.cs
- IDQuery.cs
- Item.cs
- RelationshipNavigation.cs
- XMLUtil.cs
- HelpInfo.cs
- FormsAuthenticationTicket.cs
- SocketPermission.cs
- CombinedHttpChannel.cs
- TdsParserStateObject.cs
- DefaultAsyncDataDispatcher.cs
- ResourceReferenceKeyNotFoundException.cs
- X509ThumbprintKeyIdentifierClause.cs
- TextDecorationCollection.cs
- SQLChars.cs
- Panel.cs
- DataTableMapping.cs
- TokenBasedSet.cs
- DesignerAutoFormatStyle.cs
- SafeTokenHandle.cs
- SystemIPInterfaceProperties.cs
- OleDbSchemaGuid.cs
- DocumentViewerConstants.cs
- MethodBuilder.cs
- TextCompositionEventArgs.cs
- SqlCacheDependency.cs
- PackagePartCollection.cs
- InvokeWebService.cs
- EventProviderWriter.cs
- SqlExpander.cs
- Scheduling.cs
- WebConfigurationHost.cs
- ChildTable.cs
- DeferredTextReference.cs
- SoapCodeExporter.cs
- ThemeableAttribute.cs
- CollectionViewGroupInternal.cs
- DataView.cs
- TransactionException.cs
- GridViewDeleteEventArgs.cs
- XsltInput.cs
- MultiBindingExpression.cs
- Shape.cs